🚸(frontend) initialize the join input name with the persisted full name

Prefill the "name" field on the join screen with the full name
persisted in the database, instead of leaving it empty by default.
This commit is contained in:
lebaudantoine
2026-07-10 18:15:48 +02:00
committed by aleb_the_flash
parent 0d5136206f
commit 2bc5e47c75
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -18,6 +18,7 @@ and this project adheres to
- 🗑️(settings) deprecate SUMMARY_SERVICE_VERSION=1
- ⬆️(mail) update mjml to v5 and @html-to/text-cli
- 🚸(frontend) initialize the join input name with the persisted full name
### Fixed
@@ -118,7 +118,7 @@ export const Join = ({
const { t } = useTranslation('rooms', { keyPrefix: 'join' })
const { data: configData } = useConfig()
const { isLoggedIn } = useUser()
const { isLoggedIn, user } = useUser()
const {
audioEnabled,
@@ -461,7 +461,7 @@ export const Join = ({
onChange={saveUsername}
label={t('usernameLabel')}
id="input-name"
defaultValue={username}
defaultValue={username || user?.full_name}
validate={(value) => !value && t('errors.usernameEmpty')}
wrapperProps={{
noMargin: true,