Skip to content

Commit

Permalink
Avoid flashing the 'join conference' button at the user in video rooms (
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown authored May 9, 2022
1 parent 31b4354 commit 1783645
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vector/jitsi/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,9 @@ function switchVisibleContainers() {

function toggleConferenceVisibility(inConference: boolean) {
document.getElementById("jitsiContainer").style.visibility = inConference ? 'unset' : 'hidden';
document.getElementById("joinButtonContainer").style.visibility = inConference ? 'hidden' : 'unset';
// Video rooms have a separate UI for joining, so they should never show our join button
document.getElementById("joinButtonContainer").style.visibility =
(inConference || isVideoChannel) ? 'hidden' : 'unset';
}

function skipToJitsiSplashScreen() {
Expand Down

0 comments on commit 1783645

Please sign in to comment.