diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index 1720340c..ef27beb7 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -95,7 +95,7 @@ Ext.define('Hamsket.store.ServicesList', { ,description: locale['services[7]'] ,url: 'https://web.telegram.org/' ,type: 'messaging' - ,js_unread: `let checkUnread=()=>{const e=document.querySelectorAll(".badge.unread");let t=0;for(let i of e)i.classList.contains("is-muted")||(t+=parseInt(i.innerHTML.trim()));hamsket.updateBadge(t)};setInterval(checkUnread,3e3);` + ,js_unread: `const checkUnread=()=>{const unread_messages=document.querySelectorAll(".badge.unread:not(.is-muted), .Badge.unread:not(.muted)");let count=0;for(const unread of unread_messages)count+=hamsket.parseIntOrZero(unread.textContent.trim());hamsket.updateBadge(count)};setInterval(checkUnread,3e3);` }, { id: 'wechat'