aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed
diff options
context:
space:
mode:
authorLibravatar Feiko Joosten <feiko_joosten@hotmail.com>2020-04-21 20:11:38 +0200
committerLibravatar GitHub <noreply@github.com>2020-04-21 18:11:38 +0000
commitf08f14e29b03c59642282b9eb46a7566e48c45db (patch)
treed6bfd524eeceaf1e8aeca3e4cbedf07e42663b1f /uncompressed
parentAdds support for indirect messages in Discord (#122) (diff)
downloadferdium-recipes-f08f14e29b03c59642282b9eb46a7566e48c45db.tar.gz
ferdium-recipes-f08f14e29b03c59642282b9eb46a7566e48c45db.tar.zst
ferdium-recipes-f08f14e29b03c59642282b9eb46a7566e48c45db.zip
Add support for indirect messages in MS Teams (#124)
Diffstat (limited to 'uncompressed')
-rw-r--r--uncompressed/msteams/package.json6
-rw-r--r--uncompressed/msteams/webview.js3
2 files changed, 6 insertions, 3 deletions
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'));