fix: show username in chat history

This commit is contained in:
Shibo Lyu 2024-09-11 03:18:42 +08:00
parent 78d30020c3
commit d361ac2db3
3 changed files with 15 additions and 3 deletions

View file

@ -38,6 +38,9 @@
<AvatarBeam size={32} name={messageSection.sender?.id} />
</div>
<div class="flex-1">
{#if messageSection.sender && !isMyself}
<div class="px-3 py-0.5 text-xs text-sf-tertiary">{messageSection.sender.name}</div>
{/if}
{#each messageSection.messages as message, idx}
<ChatMessage
{message}