From af5514329225743d963aa205faba5a2e02397d13 Mon Sep 17 00:00:00 2001 From: CrescentLeaf Date: Sun, 19 Oct 2025 15:18:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=AA=E6=9C=89=E4=B8=8D=E6=98=AF=E5=AF=B9?= =?UTF-8?q?=E8=AF=9D=E6=88=90=E5=91=98=E6=97=B6=E6=89=8D=E4=B8=8D=E4=BC=9A?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=B6=88=E6=81=AF=E5=91=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui/chat/ChatFragment.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/ui/chat/ChatFragment.tsx b/client/ui/chat/ChatFragment.tsx index 3d1087a..19a50b9 100644 --- a/client/ui/chat/ChatFragment.tsx +++ b/client/ui/chat/ChatFragment.tsx @@ -85,6 +85,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC const chatInfo = re.data as Chat setChatInfo(chatInfo) + if (chatInfo.is_member) await loadMore() setTabItemSelected(chatInfo.is_member ? "Chat" : "RequestJoin") @@ -272,6 +273,7 @@ export default function ChatFragment({ target, showReturnButton, onReturnButtonC flexDirection: "column", height: "100%", }} onScroll={async (e) => { + if (!chatInfo.is_member) return const scrollTop = (e.target as HTMLDivElement).scrollTop if (scrollTop == 0 && !showLoadingMoreMessagesTip) { setShowLoadingMoreMessagesTip(true)