Browse Source

Do not restore chat on room switch.

pull/12/head
Simon Eisenmann 11 years ago committed by Simon Eisenmann
parent
commit
a0efabc58e
  1. 2
      static/js/directives/chat.js

2
static/js/directives/chat.js

@ -299,7 +299,7 @@ define(['underscore', 'text!partials/chat.html', 'text!partials/chatroom.html'], @@ -299,7 +299,7 @@ define(['underscore', 'text!partials/chat.html', 'text!partials/chatroom.html'],
scope.currentRoom = null;
}
if (!controller.visibleRooms.length) {
scope.showRoom(group_chat_id, {title: translation._("Group chat")}, {restore: true});
scope.showRoom(group_chat_id, {title: translation._("Group chat")}, {restore: true, noenable: true});
}
};
scope.killRoom = function(id) {

Loading…
Cancel
Save