diff --git a/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js b/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js index 472a4a5771..256d1bb3e5 100644 --- a/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js +++ b/html5/verto/verto_communicator/src/vertoControllers/controllers/ChatController.js @@ -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); }); } diff --git a/html5/verto/verto_communicator/src/vertoService/services/vertoService.js b/html5/verto/verto_communicator/src/vertoService/services/vertoService.js index 652d5aa0da..26c13c6fc1 100644 --- a/html5/verto/verto_communicator/src/vertoService/services/vertoService.js +++ b/html5/verto/verto_communicator/src/vertoService/services/vertoService.js @@ -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,