From a2b4ae56466acedde758de8e0c14475bbf3fa9f0 Mon Sep 17 00:00:00 2001 From: Victor B <39555268+victorbnl@users.noreply.github.com> Date: Thu, 27 Apr 2023 23:13:51 +0200 Subject: Fix archive counted as unread on WhatsApp (#335) --- recipes/whatsapp/package.json | 2 +- recipes/whatsapp/webview.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'recipes/whatsapp') diff --git a/recipes/whatsapp/package.json b/recipes/whatsapp/package.json index 349f874..790b914 100644 --- a/recipes/whatsapp/package.json +++ b/recipes/whatsapp/package.json @@ -1,7 +1,7 @@ { "id": "whatsapp", "name": "WhatsApp", - "version": "3.4.9", + "version": "3.4.10", "license": "MIT", "config": { "serviceURL": "https://web.whatsapp.com", diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index 89bc673..ad1b372 100644 --- a/recipes/whatsapp/webview.js +++ b/recipes/whatsapp/webview.js @@ -39,7 +39,7 @@ module.exports = Ferdium => { query.onsuccess = (event) => { for (const chat of event.target.result) { if (chat.unreadCount > 0) { - if (chat.muteExpiration === 0) { + if (chat.muteExpiration === 0 && chat.archive === false) { unreadCount += chat.unreadCount; } else { unreadMutedCount += chat.unreadCount; -- cgit v1.2.3-54-g00ecf