BF: Take into account MEMBER_EVENT and PRESENCE_EVENT events only after the initialSync is done
parent
0271e8e692
commit
07d609cbc2
|
@ -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) {
|
||||||
|
if (isLive) {
|
||||||
updateMemberList(event);
|
updateMemberList(event);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.$on(eventHandlerService.PRESENCE_EVENT, function(ngEvent, event, isLive) {
|
$scope.$on(eventHandlerService.PRESENCE_EVENT, function(ngEvent, event, isLive) {
|
||||||
|
if (isLive) {
|
||||||
updatePresence(event);
|
updatePresence(event);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$scope.memberCount = function() {
|
$scope.memberCount = function() {
|
||||||
|
|
Loading…
Reference in New Issue