mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-20 23:32:23 +00:00
🐛(frontend) fall back to user.full_name on request-entry
Since the username refactoring, the username in the store could be undefined when the join input was pre-filled from user.full_name, because no keystroke was needed to populate the store. This led to a 400 error on the request-entry endpoint whenever the user joined without editing the pre-filled name. Fall back to user.full_name when the store username is missing, so the endpoint always receives a value. Acknowledged as a somewhat wobbly fix, but ships as-is until the underlying flow is reworked.
This commit is contained in:
@@ -32,6 +32,7 @@ and this project adheres to
|
|||||||
- 🐛(summary) properly detect when failure webhook should be sent
|
- 🐛(summary) properly detect when failure webhook should be sent
|
||||||
- 🐛(backend) preserve recording metadata when updating room access
|
- 🐛(backend) preserve recording metadata when updating room access
|
||||||
- 🐛(backend) allow any string as sub in the API serializer
|
- 🐛(backend) allow any string as sub in the API serializer
|
||||||
|
- 🐛(frontend) fall back to user.full_name on request-entry
|
||||||
|
|
||||||
|
|
||||||
## [1.24.0] - 2026-07-21
|
## [1.24.0] - 2026-07-21
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ export const Join = ({
|
|||||||
refetch: refetchRoom,
|
refetch: refetchRoom,
|
||||||
} = useQuery({
|
} = useQuery({
|
||||||
queryKey: [keys.room, roomId],
|
queryKey: [keys.room, roomId],
|
||||||
queryFn: () => fetchRoom({ roomId, username }),
|
queryFn: () => fetchRoom({ roomId, username: username || user?.full_name }),
|
||||||
staleTime: 6 * 60 * 60 * 1000, // By default, LiveKit access tokens expire 6 hours after generation
|
staleTime: 6 * 60 * 60 * 1000, // By default, LiveKit access tokens expire 6 hours after generation
|
||||||
retry: false,
|
retry: false,
|
||||||
enabled: false,
|
enabled: false,
|
||||||
@@ -339,7 +339,7 @@ export const Join = ({
|
|||||||
|
|
||||||
const { status, startWaiting } = useLobby({
|
const { status, startWaiting } = useLobby({
|
||||||
roomId,
|
roomId,
|
||||||
username,
|
username: username || user?.full_name || 'anonymous',
|
||||||
onAccepted: handleAccepted,
|
onAccepted: handleAccepted,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user