From 0dd18050a6da0c50dc83de0284715d432423f819 Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Fri, 16 Oct 2026 12:09:23 +0200 Subject: [PATCH] fix: folder page never shows its chats (#32526) On dev, opening a folder's page showed a spinner forever and never listed its chats, because the date next to each chat could not be formatted after the search dialog rewrite. The folder page now loads the date format it needs itself, so its chat list shows again. Fixes #32525 --- src/lib/components/chat/Placeholder/ChatList.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/components/chat/Placeholder/ChatList.svelte b/src/lib/components/chat/Placeholder/ChatList.svelte index 1dc0123464..6aaf3173a0 100644 --- a/src/lib/components/chat/Placeholder/ChatList.svelte +++ b/src/lib/components/chat/Placeholder/ChatList.svelte @@ -10,6 +10,7 @@ const i18n: Writable = getContext('i18n'); import dayjs from 'dayjs'; + import calendar from 'dayjs/plugin/calendar'; import localizedFormat from 'dayjs/plugin/localizedFormat'; import { getTimeRange } from '$lib/utils'; import type { ChatParticipant } from '$lib/apis/folders'; @@ -21,6 +22,7 @@ import Spinner from '$lib/components/common/Spinner.svelte'; import { chatId, socket } from '$lib/stores'; + dayjs.extend(calendar); dayjs.extend(localizedFormat); type ChatListItem = {