summary refs log tree commit diff
path: root/webclient/recents/recents-controller.js
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-02 13:55:14 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-02 13:55:23 +0200
commitd5da6b0cef598aa4abae2ff5a2c9867d0aa64a8f (patch)
tree34700332e7685f9edaee3da1a057d03d7f76a3d9 /webclient/recents/recents-controller.js
parentOrder matters when adding REST servlets (diff)
downloadsynapse-d5da6b0cef598aa4abae2ff5a2c9867d0aa64a8f.tar.xz
Handle "m.room.create" in order to inform controllers about new rooms
Diffstat (limited to 'webclient/recents/recents-controller.js')
-rw-r--r--webclient/recents/recents-controller.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/webclient/recents/recents-controller.js b/webclient/recents/recents-controller.js
index 947bd29de3..d7d3bf4053 100644
--- a/webclient/recents/recents-controller.js
+++ b/webclient/recents/recents-controller.js
@@ -47,6 +47,11 @@ angular.module('RecentsController', ['matrixService', 'eventHandlerService'])
                 $scope.rooms[event.room_id].lastMsg = event;
             }
         });
+        $scope.$on(eventHandlerService.ROOM_CREATE_EVENT, function(ngEvent, event, isLive) {
+            if (isLive) {
+                $scope.rooms[event.room_id] = event;
+            }
+        });
     };