This commit is contained in:
Timothy Jaeryang Baek 2026-10-06 20:57:09 +04:00
parent c4e885bf1e
commit 72db81fafd
2 changed files with 6 additions and 4 deletions

View file

@ -515,11 +515,11 @@
{#snippet chatItemContent()}
{#if ownerUserId}
<Tooltip content={ownerName || 'Unknown'}>
<Tooltip content={ownerName || 'Unknown'} className="flex items-center self-center shrink-0">
<img
src="{WEBUI_API_BASE_URL}/users/{ownerUserId}/profile/image"
alt=""
class="size-3.5 rounded-full shrink-0 object-cover mr-1.5"
class="size-3.5 rounded-full shrink-0 object-cover mr-2"
on:error={(e) => {
if (!e.currentTarget.src.endsWith('/static/favicon.png')) {
e.currentTarget.src = `${WEBUI_BASE_URL}/static/favicon.png`;

View file

@ -954,8 +954,10 @@
updatedAt={chat.updated_at}
lastReadAt={chat.last_read_at}
active={chat.active ?? false}
ownerName={folders[folderId]?.shared ? (chat.owner_name ?? null) : null}
ownerUserId={folders[folderId]?.shared && chat.owner_name ? chat.user_id : null}
ownerName={chat.owner_name ?? null}
ownerUserId={folders[folderId]?.shared || chat.user_id !== $user?.id
? chat.user_id
: null}
readonly={chat.user_id !== $user?.id}
{shiftKey}
onReadStateChange={applyReadState}