From fd169b7b2ad80abce5b044909d5234f0ea6a1c27 Mon Sep 17 00:00:00 2001 From: Victor B <39555268+victorbnl@users.noreply.github.com> Date: Tue, 18 Jul 2023 17:15:29 +0200 Subject: Fix WhatsApp count (#390) --- recipes/whatsapp/package.json | 2 +- recipes/whatsapp/webview.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'recipes') diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index 790b914..88a7e30 100644 --- a/recipes/whatsapp/package.json +++ b/recipes/whatsapp/package.json @@ -1,7 +1,7 @@ { "id": "whatsapp", "name": "WhatsApp", - "version": "3.4.10", + "version": "3.4.11", "license": "MIT", "config": { "serviceURL": "https://web.whatsapp.com", 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 => { query.onsuccess = (event) => { for (const chat of event.target.result) { if (chat.unreadCount > 0) { - if (chat.muteExpiration === 0 && chat.archive === false) { - unreadCount += chat.unreadCount; - } else { + if (chat.muteExpiration > 0 || chat.isAutoMuted) { unreadMutedCount += chat.unreadCount; + } else { + unreadCount += chat.unreadCount; } } } -- cgit v1.2.3-54-g00ecf