From ef868db2952ff261b19c99c555d45db895a65452 Mon Sep 17 00:00:00 2001 From: Ramiro Saenz Date: Thu, 19 Jan 2017 16:14:36 -0300 Subject: [PATCH] Prevent silence chats to count unread in WhatsApp --- app/store/ServicesList.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/store/ServicesList.js b/app/store/ServicesList.js index c597ae8a..c3d10bf8 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -28,6 +28,8 @@ Ext.define('Rambox.store.ServicesList', { ,description: 'WhatsApp is a cross-platform mobile messaging app for iPhone, BlackBerry, Android, Windows Phone and Nokia. Send text, video, images, audio for free.' ,url: 'https://web.whatsapp.com/' ,type: 'messaging' + ,js_unread: 'function checkUnread(){var a=document.getElementsByClassName("infinite-list-item"),b=0;for(i=0;i0||0===a[i].getElementsByClassName("unread-count").length)){var c=parseInt(a[i].getElementsByClassName("unread-count")[0].innerHTML.trim());b+=isNaN(c)?0:c}updateBadge(b)}function updateBadge(a){a>=1?rambox.setUnreadCount(a):rambox.clearUnreadCount()}var originalTitle=document.title;setInterval(checkUnread,1e3);' + ,dont_update_unread_from_title: true }, { id: 'slack'