From b1081c2c8136809d8edcaae8a51ed2791f45750f Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 5 Dec 2023 16:39:26 -0800 Subject: [PATCH] feat: use display name if it exists --- src/lib/components/chat/Messages.svelte | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Messages.svelte b/src/lib/components/chat/Messages.svelte index b58dd592..173ae05d 100644 --- a/src/lib/components/chat/Messages.svelte +++ b/src/lib/components/chat/Messages.svelte @@ -325,7 +325,11 @@ {#if selectedModelfile.user}
- By @{selectedModelfile.user.username} + By {selectedModelfile.user.name + ? selectedModelfile.user.name + : `@${selectedModelfile.user.username}`}
{/if} {:else}