aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Bennett <hello@vantezzen.io>2020-02-13 13:34:25 +0100
committerLibravatar GitHub <noreply@github.com>2020-02-13 13:34:25 +0100
commit83f946f546247572a787d451ca9ec6649c600849 (patch)
tree710e0a3d7761bffb72fc1f5275d4116bb70b3f5c
parentMerge pull request #38 from Serubin/master (diff)
downloadferdium-recipes-83f946f546247572a787d451ca9ec6649c600849.tar.gz
ferdium-recipes-83f946f546247572a787d451ca9ec6649c600849.tar.zst
ferdium-recipes-83f946f546247572a787d451ca9ec6649c600849.zip
Update slack: Fix incorrect notification count (#41)
* Update slack: Fix incorrect notification count https://github.com/meetfranz/recipe-slack/pull/13 * Revert "Update slack: Fix incorrect notification count" This reverts commit 54d8bad9420198abca55a41123cf110caa7aba02. * Update slack: Fix incorrect notification count https://github.com/meetfranz/recipe-slack/pull/13 * Update slack plugin version * Properly update slack plugin version * Properly update slack version number Co-authored-by: Solomon <github@serubin.net>
-rw-r--r--all.json2
-rw-r--r--slack.tar.gzbin2513 -> 67291 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 d6552e2..fa6e83e 100644
--- a/all.json
+++ b/all.json
@@ -510,7 +510,7 @@
510 "featured": false, 510 "featured": false,
511 "id": "slack", 511 "id": "slack",
512 "name": "Slack", 512 "name": "Slack",
513 "version": "1.0.12", 513 "version": "1.0.13",
514 "icons": { 514 "icons": {
515 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/slack/icon.png", 515 "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/slack/icon.png",
516 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/slack/icon.svg" 516 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/slack/icon.svg"
diff --git a/slack.tar.gz b/slack.tar.gz
index 3665090..f69df83 100644
--- a/slack.tar.gz
+++ b/slack.tar.gz
Binary files differ
diff --git a/uncompressed/slack/package.json b/uncompressed/slack/package.json
index ac59dd2..32c038a 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.12", 4 "version": "1.0.13",
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 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 };