Просмотр исходного кода

Merge branch 'master' into mockup

JC Brand 12 лет назад
Родитель
Сommit
f846e70c10
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      converse.js

+ 1 - 2
converse.js

@@ -1437,10 +1437,9 @@
             },
             },
 
 
             showErrorMessage: function ($error, room) {
             showErrorMessage: function ($error, room) {
-                var $chat_content = this.$el.find('.chat-content');
                 // We didn't enter the room, so we must remove it from the MUC
                 // We didn't enter the room, so we must remove it from the MUC
                 // add-on
                 // add-on
-                converse.connection.muc.removeRoom(room.name);
+                delete converse.connection.muc[room.name];
                 if ($error.attr('type') == 'auth') {
                 if ($error.attr('type') == 'auth') {
                     if ($error.find('not-authorized').length) {
                     if ($error.find('not-authorized').length) {
                         this.renderPasswordForm();
                         this.renderPasswordForm();