From 3e364f08adb53165288086a4473d87483853f9f6 Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Tue, 27 Sep 2022 16:56:55 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/src/components/ChatBox/ChatMessageList/NormalList.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/web/src/components/ChatBox/ChatMessageList/NormalList.tsx b/client/web/src/components/ChatBox/ChatMessageList/NormalList.tsx index 2b4236d8..112b6bd0 100644 --- a/client/web/src/components/ChatBox/ChatMessageList/NormalList.tsx +++ b/client/web/src/components/ChatBox/ChatMessageList/NormalList.tsx @@ -39,9 +39,7 @@ export const NormalMessageList: React.FC = React.memo( } if (containerRef.current.scrollTop === 0) { - onUpdateReadedMessageRef.current( - props.messages[props.messages.length - 1]._id - ); + // 滚动到最底部 } else if ( -containerRef.current.scrollTop + containerRef.current.clientHeight === containerRef.current.scrollHeight