Merge pull request #10607 from pedrobmarin/breakout-join-audio-ui

Fix the UI state on breakout room audio join
This commit is contained in:
Anton Georgiev 2020-10-07 09:02:10 -04:00 committed by GitHub
commit 1363f8e1e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -221,13 +221,12 @@ class BreakoutRoom extends PureComponent {
(
<Button
label={
moderatorJoinedAudio
&& stateBreakoutId === breakoutId
&& joinedAudioOnly
stateBreakoutId === breakoutId && joinedAudioOnly
? intl.formatMessage(intlMessages.breakoutReturnAudio)
: intl.formatMessage(intlMessages.breakoutJoinAudio)
}
className={styles.button}
disabled={stateBreakoutId !== breakoutId && joinedAudioOnly}
key={`join-audio-${breakoutId}`}
onClick={audioAction}
/>