Browse Source

Merge pull request #2938 from ssendev/gh-pages

Fix Element js_unread
gh-pages
Vulich Fernando 4 years ago committed by GitHub
parent
commit
7a809ac92f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      api/services.json

2
api/services.json

@ -263,7 +263,7 @@
"type": "messaging", "type": "messaging",
"allow_popups": false, "allow_popups": false,
"manual_notifications": 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": "", "userAgent": "",
"note": "", "note": "",
"titleBlink": false, "titleBlink": false,

Loading…
Cancel
Save