mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
71c4da8c06
commit
1de36d600f
1 changed files with 3 additions and 2 deletions
|
|
@ -17,7 +17,7 @@
|
|||
import ChevronRight from '$lib/components/icons/ChevronRight.svelte';
|
||||
import Tooltip from '$lib/components/common/Tooltip.svelte';
|
||||
import Spinner from '$lib/components/common/Spinner.svelte';
|
||||
import { chatId, socket } from '$lib/stores';
|
||||
import { chatId, socket, user } from '$lib/stores';
|
||||
|
||||
dayjs.extend(localizedFormat);
|
||||
|
||||
|
|
@ -175,6 +175,7 @@
|
|||
{#each chatList as chat, idx (chat.id)}
|
||||
{@const unread =
|
||||
chat.id !== $chatId &&
|
||||
chat.user_id === $user?.id &&
|
||||
!chat.active &&
|
||||
(chat.last_read_at == null ||
|
||||
(chat.updated_at != null && chat.updated_at > chat.last_read_at))}
|
||||
|
|
@ -234,7 +235,7 @@
|
|||
|
||||
<div class="hidden sm:flex sm:basis-2/5 items-center justify-end gap-2">
|
||||
<div class=" text-gray-500 dark:text-gray-400 text-xs">
|
||||
{dayjs(chat?.updated_at * 1000).calendar()}
|
||||
{dayjs(((chat.updated_at ?? chat.created_at) ?? 0) * 1000).calendar()}
|
||||
</div>
|
||||
|
||||
{#if showOwnerInfo && chat.user_id && chat.owner_name}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue