From 2bc5e47c753db96eb3ddd878eb47452fa65946ed Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Fri, 10 Jul 2026 18:15:48 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8(frontend)=20initialize=20the=20joi?= =?UTF-8?q?n=20input=20name=20with=20the=20persisted=20full=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Prefill the "name" field on the join screen with the full name persisted in the database, instead of leaving it empty by default. --- CHANGELOG.md | 1 + src/frontend/src/features/rooms/components/Join.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) 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,