aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/whatsapp/webview.js
diff options
context:
space:
mode:
Diffstat (limited to 'recipes/whatsapp/webview.js')
-rw-r--r--recipes/whatsapp/webview.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js
index ad1b372..e2496be 100644
--- a/recipes/whatsapp/webview.js
+++ b/recipes/whatsapp/webview.js
@@ -39,10 +39,10 @@ module.exports = Ferdium => {
39 query.onsuccess = (event) => { 39 query.onsuccess = (event) => {
40 for (const chat of event.target.result) { 40 for (const chat of event.target.result) {
41 if (chat.unreadCount > 0) { 41 if (chat.unreadCount > 0) {
42 if (chat.muteExpiration === 0 && chat.archive === false) { 42 if (chat.muteExpiration > 0 || chat.isAutoMuted) {
43 unreadCount += chat.unreadCount;
44 } else {
45 unreadMutedCount += chat.unreadCount; 43 unreadMutedCount += chat.unreadCount;
44 } else {
45 unreadCount += chat.unreadCount;
46 } 46 }
47 } 47 }
48 } 48 }