diff options
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | archives/slack.tar.gz | bin | 67132 -> 67098 bytes | |||
-rw-r--r-- | uncompressed/slack/package.json | 2 | ||||
-rw-r--r-- | uncompressed/slack/webview.js | 2 |
4 files changed, 3 insertions, 3 deletions
@@ -917,7 +917,7 @@ | |||
917 | "featured": true, | 917 | "featured": true, |
918 | "id": "slack", | 918 | "id": "slack", |
919 | "name": "Slack", | 919 | "name": "Slack", |
920 | "version": "1.0.15", | 920 | "version": "1.0.16", |
921 | "icons": { | 921 | "icons": { |
922 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/slack/icon.png", | 922 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/slack/icon.png", |
923 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/slack/icon.svg" | 923 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/slack/icon.svg" |
diff --git a/archives/slack.tar.gz b/archives/slack.tar.gz index 8432094..bde2ab2 100644 --- a/archives/slack.tar.gz +++ b/archives/slack.tar.gz | |||
Binary files differ | |||
diff --git a/uncompressed/slack/package.json b/uncompressed/slack/package.json index 987ce6a..8463e88 100644 --- a/uncompressed/slack/package.json +++ b/uncompressed/slack/package.json | |||
@@ -1,7 +1,7 @@ | |||
1 | { | 1 | { |
2 | "id": "slack", | 2 | "id": "slack", |
3 | "name": "Slack", | 3 | "name": "Slack", |
4 | "version": "1.0.15", | 4 | "version": "1.0.16", |
5 | "description": "Slack", | 5 | "description": "Slack", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |
diff --git a/uncompressed/slack/webview.js b/uncompressed/slack/webview.js index 2b54c71..f7bccfc 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:not([data-sidebar-link-id="Punreads"]):not([data-sidebar-link-id="Pdrafts"])`).length; | 44 | const directMessages = document.querySelectorAll(`${SELECTOR_CHANNELS_UNREAD} .p-channel_sidebar__badge, .p-channel_sidebar__link--unread:not([data-sidebar-link-id="Punreads"]):not([data-sidebar-link-id="Pdrafts"]):not([data-sidebar-link-id="Pdms"])`).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 | }; |