diff options
author | 2020-02-19 11:41:14 +0100 | |
---|---|---|
committer | 2020-02-19 11:41:14 +0100 | |
commit | 65d526d5439c88ffdabe4084dee1e6ce88fdfdc7 (patch) | |
tree | b0f25027b99375f441e9a90c4abb3de196728189 /uncompressed/slack/webview.js | |
parent | Update mailbox.org recipe (diff) | |
parent | Merge pull request #44 from dpeukert/master (diff) | |
download | ferdium-recipes-65d526d5439c88ffdabe4084dee1e6ce88fdfdc7.tar.gz ferdium-recipes-65d526d5439c88ffdabe4084dee1e6ce88fdfdc7.tar.zst ferdium-recipes-65d526d5439c88ffdabe4084dee1e6ce88fdfdc7.zip |
Merge branch 'master' of https://github.com/getferdi/recipes
Diffstat (limited to 'uncompressed/slack/webview.js')
-rw-r--r-- | uncompressed/slack/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uncompressed/slack/webview.js b/uncompressed/slack/webview.js index 174d81c..e64ff4d 100644 --- a/uncompressed/slack/webview.js +++ b/uncompressed/slack/webview.js | |||
@@ -41,7 +41,7 @@ const SELECTOR_CHANNELS_UNREAD = '.p-channel_sidebar__channel--unread:not(.p-cha | |||
41 | 41 | ||
42 | module.exports = Franz => { | 42 | module.exports = Franz => { |
43 | const getMessages = () => { | 43 | const getMessages = () => { |
44 | const directMessages = document.querySelectorAll(`${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread`).length; | 44 | const directMessages = document.querySelectorAll(`${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread:not([data-sidebar-link-id="Punreads"]`).length; |
45 | const allMessages = document.querySelectorAll(SELECTOR_CHANNELS_UNREAD).length - directMessages; | 45 | const allMessages = document.querySelectorAll(SELECTOR_CHANNELS_UNREAD).length - directMessages; |
46 | Franz.setBadge(directMessages, allMessages); | 46 | Franz.setBadge(directMessages, allMessages); |
47 | }; | 47 | }; |