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/package.json | 2 +- recipes/whatsapp/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes') diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index 9b67de4..bd4a3d5 100644 --- a/recipes/whatsapp/package.json +++ b/recipes/whatsapp/package.json @@ -1,7 +1,7 @@ { "id": "whatsapp", "name": "WhatsApp", - "version": "3.5.1", + "version": "3.5.2", "license": "MIT", "config": { "serviceURL": "https://web.whatsapp.com", 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