diff options
Diffstat (limited to 'uncompressed')
-rw-r--r-- | uncompressed/msteams/package.json | 6 | ||||
-rw-r--r-- | uncompressed/msteams/webview.js | 3 |
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')); |