diff options
author | David Baker <dbkr@matrix.org> | 2014-09-01 15:53:07 +0100 |
---|---|---|
committer | David Baker <dbkr@matrix.org> | 2014-09-01 15:54:06 +0100 |
commit | fa6b3490e299ebdb8c24e5858036bbfb67e76c6b (patch) | |
tree | d861d5f9830b4f3c1849a606784e2e0a1bfdbbff /webclient/recents | |
parent | Just show 'Call' for call events. Don't just splat out the content of the eve... (diff) | |
download | synapse-fa6b3490e299ebdb8c24e5858036bbfb67e76c6b.tar.xz |
Handle call events in the recents view as well to get consistency with what it displays when refreshed.
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 d33d41a922..c9fd022d7f 100644 --- a/webclient/recents/recents-controller.js +++ b/webclient/recents/recents-controller.js @@ -43,6 +43,11 @@ angular.module('RecentsController', ['matrixService', 'eventHandlerService']) $scope.rooms[event.room_id].lastMsg = event; } }); + $scope.$on(eventHandlerService.CALL_EVENT, function(ngEvent, event, isLive) { + if (isLive) { + $scope.rooms[event.room_id].lastMsg = event; + } + }); }; |