aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Feiko Joosten <feiko_joosten@hotmail.com>2020-09-19 19:35:36 +0200
committerLibravatar GitHub <noreply@github.com>2020-09-19 18:35:36 +0100
commitdf53953c342c3bab7e36e752c7b2d38dd17bba1d (patch)
treec42ebae9a736176aacf384dcca715201b995c3f1
parentAdd Nextcloud Carnet recipe (#263) (diff)
downloadferdium-recipes-df53953c342c3bab7e36e752c7b2d38dd17bba1d.tar.gz
ferdium-recipes-df53953c342c3bab7e36e752c7b2d38dd17bba1d.tar.zst
ferdium-recipes-df53953c342c3bab7e36e752c7b2d38dd17bba1d.zip
Fix wrong notifications count for Slack (#271)
-rw-r--r--all.json2
-rw-r--r--archives/slack.tar.gzbin67132 -> 67098 bytes
-rw-r--r--uncompressed/slack/package.json2
-rw-r--r--uncompressed/slack/webview.js2
4 files changed, 3 insertions, 3 deletions
diff --git a/all.json b/all.json
index d229aec..3f6fdaa 100644
--- a/all.json
+++ b/all.json
@@ -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
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: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 };