From 16b40cbede292ae0faa073d18b5ff2175a531744 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 9 Sep 2014 11:45:36 +0100 Subject: [PATCH] Show call invites in the message table --- webclient/components/matrix/event-handler-service.js | 3 +++ webclient/room/room.html | 4 ++++ 2 files changed, 7 insertions(+) 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 { diff --git a/webclient/room/room.html b/webclient/room/room.html index 01f0c4ee33..5debeaba7c 100644 --- a/webclient/room/room.html +++ b/webclient/room/room.html @@ -97,6 +97,10 @@ + + Outgoing Call + Incoming Call +