BF: Take into account MEMBER_EVENT and PRESENCE_EVENT events only after the initialSync is done

This commit is contained in:
Emmanuel ROHEE 2014-09-02 09:39:43 +02:00
parent 0271e8e692
commit 07d609cbc2

View File

@ -75,11 +75,15 @@ angular.module('RoomController', ['ngSanitize', 'mFileInput'])
}); });
$scope.$on(eventHandlerService.MEMBER_EVENT, function(ngEvent, event, isLive) { $scope.$on(eventHandlerService.MEMBER_EVENT, function(ngEvent, event, isLive) {
updateMemberList(event); if (isLive) {
updateMemberList(event);
}
}); });
$scope.$on(eventHandlerService.PRESENCE_EVENT, function(ngEvent, event, isLive) { $scope.$on(eventHandlerService.PRESENCE_EVENT, function(ngEvent, event, isLive) {
updatePresence(event); if (isLive) {
updatePresence(event);
}
}); });
$scope.memberCount = function() { $scope.memberCount = function() {