Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/jsxc.nextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorTobia De Koninck <tobia@ledfan.be>2017-10-03 15:53:33 +0300
committerTobia De Koninck <tobia@ledfan.be>2018-02-10 12:35:47 +0300
commite8136e41f92660d8ac4c6ecfecfb5373371f5fe6 (patch)
tree2f6c96a7dd4a1bfc90f216147b6e841320645017 /js
parentdf86a4c2bacee7012ed64bffcaadec6102918d5f (diff)
Update tests
Signed-off-by: Tobia De Koninck <tobia@ledfan.be>
Diffstat (limited to 'js')
-rw-r--r--js/ojsxc.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/js/ojsxc.js b/js/ojsxc.js
index 063624a..cd82383 100644
--- a/js/ojsxc.js
+++ b/js/ojsxc.js
@@ -330,6 +330,16 @@
jsxc.storage.setItem('login_without_chat', false);
});
+ $(document).on('connfail.jsxc', function(ev, condition) {
+ if (condition === 'x-nc-not_allowed_to_chat') {
+ jsxc.gui.roster.toggle(jsxc.CONST.HIDDEN);
+ $('.jsxc_chatIcon').remove();
+ jsxc.storage.removeItem('jid');
+ jsxc.storage.removeItem('sid');
+ jsxc.storage.removeItem('rid');
+ }
+ });
+
$(document).on('status.contacts.count status.contact.updated', function() {
if (jsxc.restoreCompleted) {
setTimeout(function() {
@@ -394,6 +404,7 @@
if ($('#contactsmenu').length > 0) {
observeContactsMenu();
}
+
});
$(document).on('click', '#jsxc_roster p', function() {