diff options
author | 2020-04-21 20:11:38 +0200 | |
---|---|---|
committer | 2020-04-21 18:11:38 +0000 | |
commit | f08f14e29b03c59642282b9eb46a7566e48c45db (patch) | |
tree | d6bfd524eeceaf1e8aeca3e4cbedf07e42663b1f | |
parent | Adds support for indirect messages in Discord (#122) (diff) | |
download | ferdium-recipes-f08f14e29b03c59642282b9eb46a7566e48c45db.tar.gz ferdium-recipes-f08f14e29b03c59642282b9eb46a7566e48c45db.tar.zst ferdium-recipes-f08f14e29b03c59642282b9eb46a7566e48c45db.zip |
Add support for indirect messages in MS Teams (#124)
-rw-r--r-- | all.json | 2 | ||||
-rw-r--r-- | archives/msteams.tar.gz | bin | 13784 -> 13856 bytes | |||
-rw-r--r-- | uncompressed/msteams/package.json | 6 | ||||
-rw-r--r-- | uncompressed/msteams/webview.js | 3 |
4 files changed, 7 insertions, 4 deletions
@@ -510,7 +510,7 @@ | |||
510 | "featured": false, | 510 | "featured": false, |
511 | "id": "msteams", | 511 | "id": "msteams", |
512 | "name": "Microsoft Teams", | 512 | "name": "Microsoft Teams", |
513 | "version": "1.3.0", | 513 | "version": "1.3.1", |
514 | "icons": { | 514 | "icons": { |
515 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/msteams/icon.png", | 515 | "png": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/msteams/icon.png", |
516 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/msteams/icon.svg" | 516 | "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/uncompressed/msteams/icon.svg" |
diff --git a/archives/msteams.tar.gz b/archives/msteams.tar.gz index 0582ee1..e124234 100644 --- a/archives/msteams.tar.gz +++ b/archives/msteams.tar.gz | |||
Binary files differ | |||
diff --git a/uncompressed/msteams/package.json b/uncompressed/msteams/package.json index 240d059..26dfd42 100644 --- a/uncompressed/msteams/package.json +++ b/uncompressed/msteams/package.json | |||
@@ -1,13 +1,15 @@ | |||
1 | { | 1 | { |
2 | "id": "msteams", | 2 | "id": "msteams", |
3 | "name": "Microsoft Teams", | 3 | "name": "Microsoft Teams", |
4 | "version": "1.3.0", | 4 | "version": "1.3.1", |
5 | "description": "Microsoft Teams", | 5 | "description": "Microsoft Teams", |
6 | "main": "index.js", | 6 | "main": "index.js", |
7 | "author": "Stefan Malzner <stefan@adlk.io>", | 7 | "author": "Stefan Malzner <stefan@adlk.io>", |
8 | "license": "MIT", | 8 | "license": "MIT", |
9 | "config": { | 9 | "config": { |
10 | "serviceURL": "https://teams.microsoft.com", | 10 | "serviceURL": "https://teams.microsoft.com", |
11 | "hasNotificationSound": true | 11 | "hasNotificationSound": true, |
12 | "hasDirectMessages": true, | ||
13 | "hasIndirectMessages": true | ||
12 | } | 14 | } |
13 | } | 15 | } |
diff --git a/uncompressed/msteams/webview.js b/uncompressed/msteams/webview.js index 0fd5253..7823c63 100644 --- a/uncompressed/msteams/webview.js +++ b/uncompressed/msteams/webview.js | |||
@@ -77,8 +77,9 @@ module.exports = Franz => { | |||
77 | messages = value; | 77 | messages = value; |
78 | } | 78 | } |
79 | } | 79 | } |
80 | const indirectMessages = document.querySelectorAll("[class*=channel-anchor][class*=ts-unread-channel]").length; | ||
80 | 81 | ||
81 | Franz.setBadge(messages); | 82 | Franz.setBadge(messages, indirectMessages); |
82 | }; | 83 | }; |
83 | 84 | ||
84 | Franz.injectCSS(path.join(__dirname, 'service.css')); | 85 | Franz.injectCSS(path.join(__dirname, 'service.css')); |