summary refs log tree commit diff
diff options
context:
space:
mode:
authorEmmanuel ROHEE <erohee@amdocs.com>2014-09-12 08:54:18 +0200
committerEmmanuel ROHEE <erohee@amdocs.com>2014-09-12 08:54:18 +0200
commit8b3ce851836b8bc2f3b8908b7abe20b7d1a37953 (patch)
treec836af9edf79a53f4c31b02809da4831c533ac51
parentfew fixes for errors in glare conditions. still seem to end up with no audio ... (diff)
downloadsynapse-8b3ce851836b8bc2f3b8908b7abe20b7d1a37953.tar.xz
BF: temp workaround while /initialSync on a particular room is not available
initRoom on a new room is not called. Call it for any received events
Diffstat (limited to '')
-rw-r--r--webclient/components/matrix/event-handler-service.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/webclient/components/matrix/event-handler-service.js b/webclient/components/matrix/event-handler-service.js
index 0c86af1880..5aabc899b8 100644
--- a/webclient/components/matrix/event-handler-service.js
+++ b/webclient/components/matrix/event-handler-service.js
@@ -236,6 +236,11 @@ angular.module('eventHandlerService', [])
         TOPIC_EVENT: TOPIC_EVENT,
     
         handleEvent: function(event, isLiveEvent, isStateEvent) {
+
+            // FIXME: /initialSync on a particular room is not yet available
+            // So initRoom on a new room is not called. Make sure the room data is initialised here
+            initRoom(event.room_id);
+
             // Avoid duplicated events
             // Needed for rooms where initialSync has not been done. 
             // In this case, we do not know where to start pagination. So, it starts from the END