From 45be976de1d536c49d558b7328c7369df0e28509 Mon Sep 17 00:00:00 2001 From: Michelle Date: Wed, 25 Mar 2026 10:13:02 +0100 Subject: [PATCH] Don't show guestWaitingMessage when "anyone_can_start" is set --- src/pages/GuestJoin.jsx | 162 ++++++++++++++++++++-------------------- 1 file changed, 81 insertions(+), 81 deletions(-) diff --git a/src/pages/GuestJoin.jsx b/src/pages/GuestJoin.jsx index b14f818..aded304 100644 --- a/src/pages/GuestJoin.jsx +++ b/src/pages/GuestJoin.jsx @@ -89,7 +89,7 @@ export default function GuestJoin() { // Auto-join when meeting starts while waiting useEffect(() => { if (!prevRunningRef.current && status.running && waiting) { - new Audio('/sounds/meeting-started.mp3').play().catch(() => {}); + new Audio('/sounds/meeting-started.mp3').play().catch(() => { }); toast.success(t('room.guestMeetingStartedJoining')); joinMeeting(); } @@ -210,97 +210,97 @@ export default function GuestJoin() { )} ) : ( -
-
- -
- - !isLoggedIn && setName(e.target.value)} - readOnly={isLoggedIn} - className={`input-field pl-11 ${isLoggedIn ? 'opacity-70 cursor-not-allowed' : ''}`} - placeholder={t('room.guestNamePlaceholder')} - required - autoFocus={!isLoggedIn} - /> -
-
- - {roomInfo.has_access_code && ( +
- +
- + setAccessCode(e.target.value)} - className="input-field pl-11" - placeholder={t('room.guestAccessCodePlaceholder')} + value={name} + onChange={e => !isLoggedIn && setName(e.target.value)} + readOnly={isLoggedIn} + className={`input-field pl-11 ${isLoggedIn ? 'opacity-70 cursor-not-allowed' : ''}`} + placeholder={t('room.guestNamePlaceholder')} + required + autoFocus={!isLoggedIn} />
- )} -
- -
- - setModeratorCode(e.target.value)} - className="input-field pl-11" - placeholder={t('room.guestModeratorPlaceholder')} - /> -
-
- - {/* Recording consent notice */} - {roomInfo.allow_recording && ( -
-
- -

{t('room.guestRecordingNotice')}

+ {roomInfo.has_access_code && ( +
+ +
+ + setAccessCode(e.target.value)} + className="input-field pl-11" + placeholder={t('room.guestAccessCodePlaceholder')} + /> +
- -
- )} - - - {!status.running && ( -

- {t('room.guestWaitingMessage')} -

- )} - +
+ +
+ + setModeratorCode(e.target.value)} + className="input-field pl-11" + placeholder={t('room.guestModeratorPlaceholder')} + /> +
+
+ + {/* Recording consent notice */} + {roomInfo.allow_recording && ( +
+
+ +

{t('room.guestRecordingNotice')}

+
+ +
+ )} + + + + {!status.running && !roomInfo?.anyone_can_start && ( +

+ {t('room.guestWaitingMessage')} +

+ )} + )} {!isLoggedIn && (