diff options
author | 2023-08-27 07:18:03 +1000 | |
---|---|---|
committer | 2023-08-26 22:18:03 +0100 | |
commit | e63fed29d86cc46acdda7581a8f67579767abbd6 (patch) | |
tree | 102a5012014d47281f2f4435f06703ccdd030b8b /recipes/whatsapp/webview.js | |
parent | Fix telegram deeplink by adding empty onload (#407) (diff) | |
download | ferdium-recipes-e63fed29d86cc46acdda7581a8f67579767abbd6.tar.gz ferdium-recipes-e63fed29d86cc46acdda7581a8f67579767abbd6.tar.zst ferdium-recipes-e63fed29d86cc46acdda7581a8f67579767abbd6.zip |
Fix Whatsapp recipe unread counts for muted conversations (#408)
Diffstat (limited to 'recipes/whatsapp/webview.js')
-rw-r--r-- | recipes/whatsapp/webview.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 26f2a3a..89a023a 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js | |||
@@ -18,7 +18,7 @@ module.exports = Ferdium => { | |||
18 | query.onsuccess = event => { | 18 | query.onsuccess = event => { |
19 | for (const chat of event.target.result) { | 19 | for (const chat of event.target.result) { |
20 | if (chat.unreadCount > 0) { | 20 | if (chat.unreadCount > 0) { |
21 | if (chat.muteExpiration > 0 || chat.isAutoMuted) { | 21 | if (chat.muteExpiration != 0 || chat.isAutoMuted) { |
22 | unreadMutedCount += chat.unreadCount; | 22 | unreadMutedCount += chat.unreadCount; |
23 | } else { | 23 | } else { |
24 | unreadCount += chat.unreadCount; | 24 | unreadCount += chat.unreadCount; |