From 349e0933c31c80c750856cf91d0a0af53fa4d46e Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 19 Oct 2025 15:09:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=20caused=5Fby=20=E5=8F=B2?= =?UTF-8?q?=E5=B1=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/chat/ChatFragment.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/client/ui/chat/ChatFragment.tsx b/client/ui/chat/ChatFragment.tsx index 4d7ef70..5dd693f 100644 --- a/client/ui/chat/ChatFragment.tsx +++ b/client/ui/chat/ChatFragment.tsx @@ -104,12 +104,8 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC page: page.current, }) - if (re.caused_by == 'NOT_IN_THIS_CHAT_MEMBER_LIST') - return setMessagesList([{ - text: '您未在群成员之中, 请等待管理员审批...', - }] as Message[]) - else if(checkApiSuccessOrSncakbar(re, "拉取对话记录失败")) - return + if (checkApiSuccessOrSncakbar(re, "拉取对话记录失败")) + return const returnMsgs = (re.data!.messages as Message[]).reverse() page.current++ if (returnMsgs.length == 0) {