mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-03-24 23:06:51 +00:00
@@ -3050,6 +3050,7 @@ function ChatPage(props: ChatPageProps) {
|
||||
}
|
||||
|
||||
// 日期跳转时滚动到顶部,否则滚动到底部
|
||||
const loadedMessages = result.messages
|
||||
requestAnimationFrame(() => {
|
||||
if (isDateJumpRef.current) {
|
||||
if (messageVirtuosoRef.current && resultMessages.length > 0) {
|
||||
@@ -3084,6 +3085,7 @@ function ChatPage(props: ChatPageProps) {
|
||||
}
|
||||
|
||||
// 加载更早消息后保持视口锚点,避免跳屏
|
||||
const appendedMessages = result.messages
|
||||
requestAnimationFrame(() => {
|
||||
if (messageVirtuosoRef.current) {
|
||||
if (anchorMessageKeyBeforePrepend) {
|
||||
@@ -5655,7 +5657,7 @@ function ChatPage(props: ChatPageProps) {
|
||||
)}
|
||||
<MemoMessageBubble
|
||||
message={msg}
|
||||
session={currentSession}
|
||||
session={currentSession!}
|
||||
showTime={!showDateDivider && showTime}
|
||||
myAvatarUrl={myAvatarUrl}
|
||||
isGroupChat={isCurrentSessionGroup}
|
||||
|
||||
Reference in New Issue
Block a user