summary refs log tree commit diff
path: root/webclient/components
diff options
context:
space:
mode:
authorDavid Baker <dbkr@matrix.org>2014-09-09 11:45:36 +0100
committerDavid Baker <dbkr@matrix.org>2014-09-09 11:45:36 +0100
commit16b40cbede292ae0faa073d18b5ff2175a531744 (patch)
tree3176824f8046ca65a65a0d1210a3cf6e888b25d7 /webclient/components
parentCSS tweakage (diff)
downloadsynapse-16b40cbede292ae0faa073d18b5ff2175a531744.tar.xz
Show call invites in the message table
Diffstat (limited to 'webclient/components')
-rw-r--r--webclient/components/matrix/event-handler-service.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/webclient/components/matrix/event-handler-service.js b/webclient/components/matrix/event-handler-service.js
index 5a3e92186e..94ac91db5e 100644
--- a/webclient/components/matrix/event-handler-service.js
+++ b/webclient/components/matrix/event-handler-service.js
@@ -172,6 +172,9 @@ angular.module('eventHandlerService', [])
 
     var handleCallEvent = function(event, isLiveEvent) {
         $rootScope.$broadcast(CALL_EVENT, event, isLiveEvent);
+        if (event.type == 'm.call.invite') {
+            $rootScope.events.rooms[event.room_id].messages.push(event);
+        }
     };
     
     return {