From 07d609cbc2aefe3495b05d939e4a2f065818dd08 Mon Sep 17 00:00:00 2001 From: Emmanuel ROHEE Date: Tue, 2 Sep 2014 09:39:43 +0200 Subject: BF: Take into account MEMBER_EVENT and PRESENCE_EVENT events only after the initialSync is done --- webclient/room/room-controller.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webclient/room/room-controller.js b/webclient/room/room-controller.js index 9861b25617..472a4d2fae 100644 --- a/webclient/room/room-controller.js +++ b/webclient/room/room-controller.js @@ -75,11 +75,15 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput']) }); $scope.$on(eventHandlerService.MEMBER_EVENT, function(ngEvent, event, isLive) { - updateMemberList(event); + if (isLive) { + updateMemberList(event); + } }); $scope.$on(eventHandlerService.PRESENCE_EVENT, function(ngEvent, event, isLive) { - updatePresence(event); + if (isLive) { + updatePresence(event); + } }); $scope.memberCount = function() { -- cgit 1.4.1