From a0efabc58e12a598c78e7bd3c2083059dafee5e3 Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Sun, 16 Mar 2014 16:12:29 +0100 Subject: [PATCH] Do not restore chat on room switch. --- static/js/directives/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/directives/chat.js b/static/js/directives/chat.js index 971c9c2b..cb88040f 100644 --- a/static/js/directives/chat.js +++ b/static/js/directives/chat.js @@ -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) {