From 11890ff481aef6741e869bc60423cea97c4b40bc Mon Sep 17 00:00:00 2001 From: ssendev Date: Tue, 12 Jan 2021 12:08:02 +0100 Subject: [PATCH] Fix Element js_unread Element changed a class breaking the unread counter see: https://github.com/matrix-org/matrix-react-sdk/commit/c9b0b3b31d15b26e4917ba5bce79a3da6ac804b9 --- api/services.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services.json b/api/services.json index 855a588f..21b9a622 100644 --- a/api/services.json +++ b/api/services.json @@ -263,7 +263,7 @@ "type": "messaging", "allow_popups": false, "manual_notifications": false, - "js_unread": "function checkUnread(){e=0,document.querySelectorAll(\".mx_RoomSublist2_stickable\").forEach(t=>t.querySelector(\".mx_NotificationBadge_count\")&&parseInt(t.querySelector(\".mx_NotificationBadge_count\").innerText)&&(e+=parseInt(t.querySelector(\".mx_NotificationBadge_count\").innerText))),updateBadge(e)}function updateBadge(e){e&&e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);", + "js_unread": "function checkUnread(){e=0,document.querySelectorAll(\".mx_RoomSublist_stickable\").forEach(t=>t.querySelector(\".mx_NotificationBadge_count\")&&parseInt(t.querySelector(\".mx_NotificationBadge_count\").innerText)&&(e+=parseInt(t.querySelector(\".mx_NotificationBadge_count\").innerText))),updateBadge(e)}function updateBadge(e){e&&e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);", "userAgent": "", "note": "", "titleBlink": false,