FS-8336 [verto_communicator] #resolve Using conferenceMemberID when checking if the updated member is me

This commit is contained in:
Italo Rossi 2015-10-21 17:31:34 -03:00
parent b9bcd7429d
commit 80111e7dd7
2 changed files with 5 additions and 5 deletions

View File

@ -117,10 +117,10 @@
// console.log('Updating', memberIdx, ' <', $scope.members[memberIdx],
// '> with <', member, '>');
// Checking if it's me
if (member.name == verto.data.name && member.email == verto.data.email) {
verto.data.mutedMic = member.status.audio.muted;
verto.data.mutedVideo = member.status.video.muted;
}
if (parseInt(member.id) == parseInt(verto.data.conferenceMemberID)) {
verto.data.mutedMic = member.status.audio.muted;
verto.data.mutedVideo = member.status.video.muted;
}
angular.extend($scope.members[memberIdx], member);
});
}

View File

@ -346,7 +346,7 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
$rootScope.$emit('call.conference', 'conference');
data.chattingWith = pvtData.chatID;
data.confRole = pvtData.role;
data.conferenceMemberID = pvtData.conferenceMemberID;
var conf = new $.verto.conf(v, {
dialog: dialog,
hasVid: storage.data.useVideo,