Skip to content

armgit / meet

Public Imported from GitHub
0

Open source video conferencing app powered by LiveKit. Built with Django and React.

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

lebaudantoine2bc5e47c753d
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,