Merge pull request #10858 from mariogasparoni/v2.2.x-release

Set listenOnly to false when user left voice
This commit is contained in:
Anton Georgiev 2020-11-18 13:27:39 -05:00 committed by GitHub
commit 468725c386
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -919,6 +919,11 @@ public class MeetingService implements MessageListener {
User vuser = m.userLeft(message.userId); User vuser = m.userLeft(message.userId);
} else { } else {
user.setVoiceJoined(false); user.setVoiceJoined(false);
// userLeftVoice is also used when user leaves Global (listenonly)
// audio. Also tetting listenOnly to false is not a problem,
// once user can't join both voice/mic and global/listenonly
// at the same time.
user.setListeningOnly(false);
} }
} }
} }