aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed/slack/webview.js
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2020-02-19 11:41:14 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2020-02-19 11:41:14 +0100
commit65d526d5439c88ffdabe4084dee1e6ce88fdfdc7 (patch)
treeb0f25027b99375f441e9a90c4abb3de196728189 /uncompressed/slack/webview.js
parentUpdate mailbox.org recipe (diff)
parentMerge pull request #44 from dpeukert/master (diff)
downloadferdium-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.js2
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
42module.exports = Franz => { 42module.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 };