1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-22 18:15:47 +02:00

Work around Scheduled column update delay bug in TweetDeck

Closes 
This commit is contained in:
chylex 2016-09-03 16:15:28 +02:00
parent dbeb4c7205
commit d576bc3972

View File

@ -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.
//