mirror of
https://github.com/suitenumerique/meet.git
synced 2026-07-26 11:58:53 +00:00
🚸(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:
committed by
aleb_the_flash
parent
0d5136206f
commit
2bc5e47c75
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user