From 2a7cb22a2842d26d1c464b9ea49546cef0423ee3 Mon Sep 17 00:00:00 2001 From: Robin Townsend Date: Mon, 9 May 2022 09:37:08 -0400 Subject: [PATCH] Avoid flashing the 'join conference' button at the user in video rooms --- src/vector/jitsi/index.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/vector/jitsi/index.ts b/src/vector/jitsi/index.ts index fc3f78e20e1..f9cab16099f 100644 --- a/src/vector/jitsi/index.ts +++ b/src/vector/jitsi/index.ts @@ -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() {