From ab771b06e76520e0d9e1145a1a9ac5aaa9238271 Mon Sep 17 00:00:00 2001 From: ahmed-zhran Date: Fri, 3 Nov 2023 16:37:47 +0200 Subject: prevent pulling archived chats unread count (#452) --- recipes/whatsapp/package.json | 2 +- recipes/whatsapp/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index bd4a3d5..817993e 100644 --- a/recipes/whatsapp/package.json +++ b/recipes/whatsapp/package.json @@ -1,7 +1,7 @@ { "id": "whatsapp", "name": "WhatsApp", - "version": "3.5.2", + "version": "3.5.3", "license": "MIT", "config": { "serviceURL": "https://web.whatsapp.com", diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 89a023a..c16761a 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js @@ -17,7 +17,7 @@ module.exports = Ferdium => { const query = store.getAll(); query.onsuccess = event => { for (const chat of event.target.result) { - if (chat.unreadCount > 0) { + if (chat.unreadCount > 0 && !chat.archive) { if (chat.muteExpiration != 0 || chat.isAutoMuted) { unreadMutedCount += chat.unreadCount; } else { -- cgit v1.2.3-54-g00ecf