Skip to content

Commit

Permalink
Fix Whatsapp recipe unread counts for muted conversations (#408)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmurdocca committed Aug 26, 2023
1 parent 96e63df commit e63fed2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion recipes/whatsapp/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "whatsapp",
"name": "WhatsApp",
"version": "3.5.1",
"version": "3.5.2",
"license": "MIT",
"config": {
"serviceURL": "https://web.whatsapp.com",
Expand Down
2 changes: 1 addition & 1 deletion recipes/whatsapp/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e63fed2

Please sign in to comment.