Skip to content
Snippets Groups Projects
Commit 89b7da5b authored by Anton Georgiev's avatar Anton Georgiev
Browse files

resolve conflicting double definition of voiceUserId

parent 2abcb91a
No related branches found
No related tags found
No related merge requests found
......@@ -15,12 +15,10 @@ export default function handleVoiceUpdate({ body }, meetingId) {
const { intId, voiceUserId } = voiceUser;
const isDialInUser = (voiceUserId) => {
return voiceUserId && (voiceUserId[0] == 'v');
}
const isDialInUser = userId => voiceUserId && (userId[0] === 'v');
// if the user is dial-in, leaving voice also means leaving userlist
if(isDialInUser(voiceUserId)) removeUser(meetingId, intId);
if (isDialInUser(voiceUserId)) removeUser(meetingId, intId);
return removeVoiceUser(meetingId, voiceUser);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment