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
This commit is contained in:
Classic298 2026-10-16 12:09:23 +02:00 • committed by GitHub
parent 823670d9fa
commit 0dd18050a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,6 +10,7 @@
const i18n: Writable<ChatListI18n> = 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 = {