Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(prejoin/web): updated shouldAutoKnock helper (#11725)
Calinteodor4b4caf5b1c04
diff --git a/react/features/prejoin/functions.js b/react/features/prejoin/functions.jsindex 001f30d527..93d37cf415 100644--- a/react/features/prejoin/functions.js+++ b/react/features/prejoin/functions.js@@ -160,8 +160,11 @@ export function isPrejoinPageVisible(state: Object): boolean {* @returns {boolean}*/export function shouldAutoKnock(state: Object): boolean {- const { iAmRecorder, iAmSipGateway, autoKnockLobby } = state['features/base/config'];+ const { iAmRecorder, iAmSipGateway, autoKnockLobby, prejoinConfig } = state['features/base/config'];+ const { userSelectedSkipPrejoin } = state['features/base/settings'];+ const isPrejoinEnabled = prejoinConfig?.enabled;- return (isPrejoinPageVisible(state) || autoKnockLobby || (iAmRecorder && iAmSipGateway))+ return ((isPrejoinEnabled && !userSelectedSkipPrejoin)+ || autoKnockLobby || (iAmRecorder && iAmSipGateway))&& !state['features/lobby'].knocking;}