From e63fed29d86cc46acdda7581a8f67579767abbd6 Mon Sep 17 00:00:00 2001 From: George Murdocca Date: Sun, 27 Aug 2023 07:18:03 +1000 Subject: Fix Whatsapp recipe unread counts for muted conversations (#408) --- recipes/whatsapp/webview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes/whatsapp/webview.js') 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 => { query.onsuccess = event => { for (const chat of event.target.result) { if (chat.unreadCount > 0) { - if (chat.muteExpiration > 0 || chat.isAutoMuted) { + if (chat.muteExpiration != 0 || chat.isAutoMuted) { unreadMutedCount += chat.unreadCount; } else { unreadCount += chat.unreadCount; -- cgit v1.2.3-54-g00ecf