mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-02 02:34:08 +02:00
Fix DM notifications not showing if the conversation is open
This commit is contained in:
parent
39ae9b8ba0
commit
4c5f5e2cce
@ -661,6 +661,17 @@
|
|||||||
}, 100);
|
}, 100);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//
|
||||||
|
// Block: Fix DM notifications not showing if the conversation is open.
|
||||||
|
//
|
||||||
|
(function(prevFunc){
|
||||||
|
TD.services.TwitterConversation.prototype.getUnreadChirps = function(e){
|
||||||
|
return (e && e.sortIndex && !e.id && !this.notificationsDisabled)
|
||||||
|
? this.messages.filter(t => t.chirpType === TD.services.ChirpBase.MESSAGE && !t.isOwnChirp() && !t.read && !t.belongsBelow(e)) // changed from belongsAbove
|
||||||
|
: prevFunc.apply(this, arguments);
|
||||||
|
};
|
||||||
|
})(TD.services.TwitterConversation.prototype.getUnreadChirps);
|
||||||
|
|
||||||
//
|
//
|
||||||
// Block: Disable TweetDeck metrics.
|
// Block: Disable TweetDeck metrics.
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user