summary refs log tree commit diff
path: root/webclient/recents
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-12 10:51:05 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-12 10:51:05 +0200
commit311dc61803f46447f252a04842601fee26e8e5ae (patch)
treead8e8ec73145ccb609c969c2763464d92b0191ba /webclient/recents
parentAdded edition of room name (diff)
downloadsynapse-311dc61803f46447f252a04842601fee26e8e5ae.tar.xz
Handle NAME_EVENT to get room name update event
(TODO: recents needs to be directly plugged to $rootScope.events.rooms)
Diffstat (limited to 'webclient/recents')
-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 8ce0969164..b65f97439f 100644
--- a/webclient/recents/recents-controller.js
+++ b/webclient/recents/recents-controller.js
@@ -68,6 +68,11 @@ angular.module('RecentsController', ['matrixService', 'matrixFilter', 'eventHand
                 $rootScope.rooms[event.room_id] = event;
             }
         });
+        $rootScope.$on(eventHandlerService.NAME_EVENT, function(ngEvent, event, isLive) {
+            if (isLive) {
+                $rootScope.rooms[event.room_id].lastMsg = event;
+            }
+        });
         $rootScope.$on(eventHandlerService.TOPIC_EVENT, function(ngEvent, event, isLive) {
             if (isLive) {
                 $rootScope.rooms[event.room_id].lastMsg = event;