aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar ahmed-zhran <ahmed.zhran.dev@gmail.com>2023-11-03 16:37:47 +0200
committerLibravatar GitHub <noreply@github.com>2023-11-03 08:37:47 -0600
commitab771b06e76520e0d9e1145a1a9ac5aaa9238271 (patch)
tree814c6837fc75ed1bae96f84e95bc0a9ff07bdfd2
parentGoogle Voice recipe add darkmode.css, fix message counts (#449) (diff)
downloadferdium-recipes-ab771b06e76520e0d9e1145a1a9ac5aaa9238271.tar.gz
ferdium-recipes-ab771b06e76520e0d9e1145a1a9ac5aaa9238271.tar.zst
ferdium-recipes-ab771b06e76520e0d9e1145a1a9ac5aaa9238271.zip
prevent pulling archived chats unread count (#452)
-rw-r--r--recipes/whatsapp/package.json2
-rw-r--r--recipes/whatsapp/webview.js2
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 @@
1{ 1{
2 "id": "whatsapp", 2 "id": "whatsapp",
3 "name": "WhatsApp", 3 "name": "WhatsApp",
4 "version": "3.5.2", 4 "version": "3.5.3",
5 "license": "MIT", 5 "license": "MIT",
6 "config": { 6 "config": {
7 "serviceURL": "https://web.whatsapp.com", 7 "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 => {
17 const query = store.getAll(); 17 const query = store.getAll();
18 query.onsuccess = event => { 18 query.onsuccess = event => {
19 for (const chat of event.target.result) { 19 for (const chat of event.target.result) {
20 if (chat.unreadCount > 0) { 20 if (chat.unreadCount > 0 && !chat.archive) {
21 if (chat.muteExpiration != 0 || chat.isAutoMuted) { 21 if (chat.muteExpiration != 0 || chat.isAutoMuted) {
22 unreadMutedCount += chat.unreadCount; 22 unreadMutedCount += chat.unreadCount;
23 } else { 23 } else {