1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-05 11:34:07 +02:00

Add a safeguard and a TODO to DM notification fix

This commit is contained in:
chylex 2018-08-16 20:36:12 +02:00
parent fa8b4e1e7f
commit 2b8ca77c0d

View File

@ -1499,13 +1499,16 @@
} }
if (unread.length > 0){ if (unread.length > 0){
unread.sort(TD.util.chirpReverseColumnSort); if (ensurePropertyExists(TD, "util", "chirpReverseColumnSort")){
unread.sort(TD.util.chirpReverseColumnSort);
}
for(let message of unread){ for(let message of unread){
onNewTweet(this, message); onNewTweet(this, message);
} }
// TODO sound notifications are borked as well // TODO sound notifications are borked as well
// TODO figure out what to do with missed notifications at startup
} }
} }
}); });