From cdbfe3e5da7aaff6d8cb2fbeb15bbd3c830bda06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=85=E5=BF=B5?= Date: Sat, 8 Aug 2026 13:56:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(chat):=20=E6=97=A5=E6=9C=9F=E7=AA=97=20star?= =?UTF-8?q?t/end=20=E6=88=90=E5=AF=B9=E9=80=8F=E4=BC=A0(=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E5=8D=95=E8=BE=B9=E8=BF=87=E6=BB=A4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude --- yunkes/src/views/ChatTimeline.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yunkes/src/views/ChatTimeline.vue b/yunkes/src/views/ChatTimeline.vue index 20bd1b6..33ee895 100644 --- a/yunkes/src/views/ChatTimeline.vue +++ b/yunkes/src/views/ChatTimeline.vue @@ -85,13 +85,15 @@ function scrollToBottom(): void { /** Shared query params for both DM and group timelines. */ function queryFor(pageNum: number) { + // 日期窗为 both-or-neither:仅当 start/end 同时存在才透传,避免单边过滤 + // (getMessages→clean() 会逐键剔除 undefined,单边 start 会变成下界过滤)。 + const hasWindow = windowStart.value != null && windowEnd.value != null return { channel: channelTyped.value, owner_account_id: props.ownerId, talker_id: isGroup.value ? undefined : props.talkerId, room_id: isGroup.value ? props.roomId : undefined, - start: windowStart.value, - end: windowEnd.value, + ...(hasWindow ? { start: windowStart.value, end: windowEnd.value } : {}), page: pageNum, page_size: PAGE_SIZE, }