diff options
author | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-02 13:55:14 +0200 |
---|---|---|
committer | Emmanuel ROHEE <erohee@amdocs.com> | 2014-09-02 13:55:23 +0200 |
commit | d5da6b0cef598aa4abae2ff5a2c9867d0aa64a8f (patch) | |
tree | 34700332e7685f9edaee3da1a057d03d7f76a3d9 /webclient/recents | |
parent | Order matters when adding REST servlets (diff) | |
download | synapse-d5da6b0cef598aa4abae2ff5a2c9867d0aa64a8f.tar.xz |
Handle "m.room.create" in order to inform controllers about new rooms
Diffstat (limited to 'webclient/recents')
-rw-r--r-- | webclient/recents/recents-controller.js | 5 |
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; + } + }); }; |