Skip to content

Commit 1783645

Browse files
authored
Avoid flashing the 'join conference' button at the user in video rooms (#22120)
1 parent 31b4354 commit 1783645

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/vector/jitsi/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,9 @@ function switchVisibleContainers() {
241241

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

247249
function skipToJitsiSplashScreen() {

0 commit comments

Comments
 (0)