From 9cf97390fb4c1f6e992896b6f8de37cedfb0f802 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Kwiatek?= Date: Tue, 20 Nov 2018 09:18:38 +0100 Subject: [PATCH] Added unread counter to Messenger --- app/store/ServicesList.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index 834fd786..fc5729af 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -56,6 +56,7 @@ Ext.define('Rambox.store.ServicesList', { ,type: 'messaging' ,titleBlink: true ,note: 'To enable desktop notifications, you have to go to Options inside Messenger.' + ,js_unread: 'function checkUnread(){var e=document.querySelectorAll("._5fx8:not(._569x),._1ht3:not(._569x)").length,t=document.querySelector("._5nxf");t&&(e+=parseInt(t.innerHTML,10)),updateBadge(e)}function updateBadge(e){document.title=e>=1?"("+e+") "+originalTitle:originalTitle}var originalTitle=document.title;setInterval(checkUnread,3e3);' }, { id: 'skype'