From d87dd0cfa34c8c15558ebf219238762dab550aa4 Mon Sep 17 00:00:00 2001 From: Vulich Fernando <46904390+fvulich@users.noreply.github.com> Date: Fri, 17 Jul 2020 12:38:36 -0300 Subject: [PATCH] Riot.im is now Element.io Fixes https://github.com/ramboxapp/community-edition/issues/2761 --- api/services.json | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/api/services.json b/api/services.json index 94404ce1..7b5c5a33 100644 --- a/api/services.json +++ b/api/services.json @@ -239,6 +239,21 @@ "titleBlink": false, "custom_domain": false }, + { + "id": "element", + "logo": "element.png", + "name": "Element", + "description": "Secure messaging app with strong end-to-end encryption, advanced group chat privacy settings, secure video calls for teams, encrypted communication using Matrix open network. Riot.im is now Element", + "url": "https://app.element.io/", + "type": "messaging", + "allow_popups": false, + "manual_notifications": false, + "js_unread": "function checkUnread(){var a=document.getElementsByClassName(\"mx_RoomTile_nameContainer\"),b=0;for(i=0;i=1?document.title=\"(\"+a+\") \"+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,1e3);", + "userAgent": "", + "note": "", + "titleBlink": false, + "custom_domain": true + }, { "id": "fastmail", "logo": "fastmail.png", @@ -248,7 +263,7 @@ "type": "email", "allow_popups": false, "manual_notifications": false, - "js_unread": "setTimeout(function(){O.WindowController.openExternal=function(a){var b=document.createElement(\"a\");b.href=a,b.setAttribute(\"target\",\"_blank\"),b.click()};},3000);", + "js_unread": "function checkUnread(){let e=0;document.querySelectorAll(\".v-MailboxSource-badge\").forEach(a=>{![\"/mail/Drafts/\",\"/mail/Spam/\"].includes(a.parentElement.pathname)&&parseInt(a.innerText)&&(e+=parseInt(a.innerText))}),updateBadge(e)}function updateBadge(e){e&&e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);", "userAgent": "", "note": "", "titleBlink": false, @@ -788,7 +803,7 @@ "type": "messaging", "allow_popups": false, "manual_notifications": false, - "js_unread": "function checkUnread(){var a=document.querySelector(\"div [data-testid=\\\"message_count\\\"] div\"),b=document.querySelector(\"div [data-testid=\\\"comment_count\\\"] div\");a=a?parseInt(a.innerText):0,b=b?parseInt(b.innerText):0,updateBadge(a+b)}function updateBadge(a){1<=a?rambox.setUnreadCount(a):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);", + "js_unread": "function checkUnread(){var e=document.querySelector(\"iframe\")?document.querySelector(\"iframe\").contentDocument.querySelectorAll(\"#content ._8fg6\"):document.querySelectorAll(\"#content ._6idk._6idh\");a=e[0]?parseInt(e[0].innerText):0,b=e[1]?parseInt(e[1].innerText):0,updateBadge(a+b)}function updateBadge(e){1<=e?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);", "userAgent": "", "note": "", "titleBlink": false, @@ -1004,21 +1019,6 @@ "titleBlink": false, "custom_domain": false }, - { - "id": "riot", - "logo": "riot.png", - "name": "Riot", - "description": "Riot is a simple and elegant collaboration environment that gathers all of your different conversations and app integrations into one single app.", - "url": "https://riot.im/app/", - "type": "messaging", - "allow_popups": false, - "manual_notifications": false, - "js_unread": "function checkUnread(){var a=document.getElementsByClassName(\"mx_RoomTile_nameContainer\"),b=0;for(i=0;i=1?document.title=\"(\"+a+\") \"+originalTitle:document.title=originalTitle}var originalTitle=document.title;setInterval(checkUnread,1e3);", - "userAgent": "", - "note": "", - "titleBlink": false, - "custom_domain": true - }, { "id": "rocketchat", "logo": "rocketchat.png", @@ -1253,7 +1253,7 @@ "type": "messaging", "allow_popups": false, "manual_notifications": false, - "js_unread": "", + "js_unread": "function checkUnread(){let e=document.querySelector(\"#top-navigation #activity .badge\").innerHTML;updateBadge(parseInt(e))}function updateBadge(e){e&&e>=1?rambox.setUnreadCount(e):rambox.clearUnreadCount()}setInterval(checkUnread,3e3);", "userAgent": "", "note": "", "titleBlink": false,