diff --git a/CHANGELOG.md b/CHANGELOG.md index c199c0e0..ff0e3fa2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/frontend/src/features/rooms/components/Join.tsx b/src/frontend/src/features/rooms/components/Join.tsx index 938398fc..895f4b1a 100644 --- a/src/frontend/src/features/rooms/components/Join.tsx +++ b/src/frontend/src/features/rooms/components/Join.tsx @@ -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,