aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/whatsapp
diff options
context:
space:
mode:
authorLibravatar George Murdocca <gmurdocca@users.noreply.github.com>2023-08-27 07:18:03 +1000
committerLibravatar GitHub <noreply@github.com>2023-08-26 22:18:03 +0100
commite63fed29d86cc46acdda7581a8f67579767abbd6 (patch)
tree102a5012014d47281f2f4435f06703ccdd030b8b /recipes/whatsapp
parentFix telegram deeplink by adding empty onload (#407) (diff)
downloadferdium-recipes-e63fed29d86cc46acdda7581a8f67579767abbd6.tar.gz
ferdium-recipes-e63fed29d86cc46acdda7581a8f67579767abbd6.tar.zst
ferdium-recipes-e63fed29d86cc46acdda7581a8f67579767abbd6.zip
Fix Whatsapp recipe unread counts for muted conversations (#408)
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 9b67de4..bd4a3d5 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.1", 4 "version": "3.5.2",
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 26f2a3a..89a023a 100644
--- a/recipes/whatsapp/webview.js
+++ b/recipes/whatsapp/webview.js
@@ -18,7 +18,7 @@ module.exports = Ferdium => {
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) {
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 {
24 unreadCount += chat.unreadCount; 24 unreadCount += chat.unreadCount;