Skip to content

Commit

Permalink
prevent pulling archived chats unread count
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-zhran authored Nov 2, 2023
1 parent 64e2649 commit bda0dc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/whatsapp/webview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit bda0dc0

Please sign in to comment.