[MM-35666] Re-ordered the priority of badge sources to leave session expired to last (#1955)

* Fixing some annoying things/stuff I broke

* [MM-35666] Re-ordered the priority of badge sources to leave session expired to last

* Fix tests
This commit is contained in:
Devin Binnie
2022-01-25 09:51:25 -05:00
committed by GitHub
parent c43dfe6002
commit 6803310217
7 changed files with 23 additions and 32 deletions

View File

@@ -93,12 +93,12 @@ export function setupTray(icontheme: string) {
});
AppState.on(UPDATE_TRAY, (anyExpired, anyMentions, anyUnreads) => {
if (anyExpired) {
setTray('mention', 'Session Expired: Please sign in to continue receiving notifications.');
} else if (anyMentions) {
if (anyMentions) {
setTray('mention', 'You have been mentioned');
} else if (anyUnreads) {
setTray('unread', 'You have unread channels');
} else if (anyExpired) {
setTray('mention', 'Session Expired: Please sign in to continue receiving notifications.');
} else {
setTray('normal', app.name);
}