diff --git a/recipes/whatsapp/webview.js b/recipes/whatsapp/webview.js index ad1b372f4..e2496bed3 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; } } }