Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(prejoin): avoid bypass unsafe consent when enter is pressed in name input (#13344)

Gabriel Borlea279a4efb831e
diff --git a/react/features/prejoin/components/web/Prejoin.tsx b/react/features/prejoin/components/web/Prejoin.tsx
index 1b0056974e..eae2b69f60 100644
--- a/react/features/prejoin/components/web/Prejoin.tsx
+++ b/react/features/prejoin/components/web/Prejoin.tsx
@@ -379,7 +379,7 @@ const Prejoin = ({
className = { classes.input }
error = { showErrorOnJoin }
onChange = { setName }
- onKeyPress = { onInputKeyPress }
+ onKeyPress = { showUnsafeRoomWarning && !unsafeRoomConsent ? undefined : onInputKeyPress }
placeholder = { t('dialog.enterDisplayName') }
readOnly = { readOnlyName }
value = { name } />