From 85115dfbdb1dbb80988dbbb1db965c689bac64a8 Mon Sep 17 00:00:00 2001 From: Franz Geiger Date: Mon, 12 Dec 2016 19:48:20 +0100 Subject: [PATCH] Ignore muted messages in Telegram unread count This filters muted messages from unread count in Telegram service. Currently, the Telegram service computes unread count based on class `im_dialog_badge badge`. This includes the count of muted conversations which add an additional class `im_dialog_badge_muted` to the badge. In order to ignore the count of these muted conversations, the list of elements is filtered for not having the class `im_dialog_badge_muted`. --- 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 4047e9b1..fa4705b1 100644 --- a/app/store/ServicesList.js +++ b/app/store/ServicesList.js @@ -95,7 +95,7 @@ Ext.define('Rambox.store.ServicesList', { ,url: 'https://web.telegram.org/' ,type: 'messaging' ,titleBlink: true - ,js_unread: 'function checkUnread(){var e=document.getElementsByClassName("im_dialog_badge badge"),t=0;for(i=0;i