aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/whatsapp
diff options
context:
space:
mode:
authorLibravatar Victor B <39555268+victorbnl@users.noreply.github.com>2023-04-27 23:13:51 +0200
committerLibravatar GitHub <noreply@github.com>2023-04-27 22:13:51 +0100
commita2b4ae56466acedde758de8e0c14475bbf3fa9f0 (patch)
treea7bd3c26f960e6aef60d34a151d738e1fd21bd3c /recipes/whatsapp
parentAdd Gather service (#343) (diff)
downloadferdium-recipes-a2b4ae56466acedde758de8e0c14475bbf3fa9f0.tar.gz
ferdium-recipes-a2b4ae56466acedde758de8e0c14475bbf3fa9f0.tar.zst
ferdium-recipes-a2b4ae56466acedde758de8e0c14475bbf3fa9f0.zip
Fix archive counted as unread on WhatsApp (#335)
Diffstat (limited to 'recipes/whatsapp')
-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 349f874..790b914 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.4.9", 4 "version": "3.4.10",
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 89bc673..ad1b372 100644
--- a/recipes/whatsapp/webview.js
+++ b/recipes/whatsapp/webview.js
@@ -39,7 +39,7 @@ module.exports = Ferdium => {
39 query.onsuccess = (event) => { 39 query.onsuccess = (event) => {
40 for (const chat of event.target.result) { 40 for (const chat of event.target.result) {
41 if (chat.unreadCount > 0) { 41 if (chat.unreadCount > 0) {
42 if (chat.muteExpiration === 0) { 42 if (chat.muteExpiration === 0 && chat.archive === false) {
43 unreadCount += chat.unreadCount; 43 unreadCount += chat.unreadCount;
44 } else { 44 } else {
45 unreadMutedCount += chat.unreadCount; 45 unreadMutedCount += chat.unreadCount;