summary refs log tree commit diff
path: root/webclient/room/room-controller.js
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-08-22 10:50:10 +0100
committerErik Johnston <erik@matrix.org>2014-08-22 10:51:00 +0100
commit74c90f78159e8067b25bfa8a009d2e68419947c8 (patch)
tree61a13587e176299667dcae796ccebf1563e5f34d /webclient/room/room-controller.js
parentUse $location.url instead of $location.path to get clean page URL without has... (diff)
downloadsynapse-74c90f78159e8067b25bfa8a009d2e68419947c8.tar.xz
Reinitialize room when creating a RoomController so that we start off with a clean slate, as it expects/
Diffstat (limited to 'webclient/room/room-controller.js')
-rw-r--r--webclient/room/room-controller.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js
index 26d1836fc2..a0485e84e8 100644
--- a/webclient/room/room-controller.js
+++ b/webclient/room/room-controller.js
@@ -316,6 +316,8 @@ angular.module('RoomController', ['ngSanitize', 'mUtilities'])
     };
 
     var onInit2 = function() {
+        eventHandlerService.reInitRoom($scope.room_id); 
+
         // Join the room
         matrixService.join($scope.room_id).then(
             function() {