🩹(backend) fix the LiveKit token to use full name as display name

Use the user's full name as the display name in the emitted LiveKit
token instead of the email.

Requested by several self-hosters.
This commit is contained in:
lebaudantoine
2026-07-10 14:16:38 +02:00
committed by aleb_the_flash
parent 2fbaa49089
commit 05a67320b1
2 changed files with 57 additions and 2 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ def generate_token(
default_username = "Anonymous"
else:
identity = str(user.sub)
default_username = str(user)
default_username = user.full_name or str(user)
if color is None:
color = generate_color(identity)