diff --git a/Resources/Scripts/code.js b/Resources/Scripts/code.js index 45f4dd1b..bb8bee91 100644 --- a/Resources/Scripts/code.js +++ b/Resources/Scripts/code.js @@ -397,6 +397,21 @@ } }; + // + // Block: Fix scheduled tweets not showing up sometimes. + // + $(document).on("dataTweetSent", function(e, data){ + if (data.response.state && data.response.state === "scheduled"){ + var column = Object.values(TD.controller.columnManager.getAll()).find(column => column.model.state.type === "scheduled"); + + if (column){ + setTimeout(function(){ + column.reloadTweets(); + }, 1000); + } + } + }); + // // Block: Inject custom CSS and layout into the page. //