From 01a91819a880dad4f59d789289681304c67cc5da Mon Sep 17 00:00:00 2001 From: Tomas Coufal Date: Thu, 16 Jan 2020 16:20:42 +0100 Subject: [PATCH] Fix the unread counter for muted conversations --- app/store/ServicesList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index cb2357b0..b7598860 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -883,7 +883,7 @@ Ext.define('Hamsket.store.ServicesList', { ,description: 'Text on your computer with Messages for web.' ,url: 'https://messages.google.com/web' ,type: 'messaging' - ,js_unread: `let checkUnread=()=>{hamsket.updateBadge(Array.prototype.slice.apply(document.querySelectorAll(".text-content.unread")).reduce((c,b) => b.querySelector(".notifications-off")||1,0))};setInterval(checkUnread,3e3);` + ,js_unread: `let checkUnread=()=>{hamsket.updateBadge(Array.prototype.slice.apply(document.querySelectorAll(".text-content.unread")).reduce((c,b) => !b.querySelector(".notifications-off")+c,0))};setInterval(checkUnread,3e3);` } ] });