Do not join microphone when user is already in breakout

Fixes #11511
Related to the feature implemented in c451666d52
This commit is contained in:
Mario Jr 2021-02-28 15:14:35 -03:00
parent 2bf959c76a
commit 629b6c901c

View File

@ -83,7 +83,8 @@ class AudioContainer extends PureComponent {
componentDidUpdate(prevProps) {
const { hasBreakoutRooms, joinedAudio } = this.props;
const { hasBreakoutRooms: hadBreakoutRooms } = prevProps;
if (hadBreakoutRooms && !hasBreakoutRooms && joinedAudio) {
if (hadBreakoutRooms && !hasBreakoutRooms && joinedAudio
&& !Service.isConnected()) {
joinMicrophone(true, true);
}
}