File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
package/src/components/MessageList Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ const MessageListWithContext = (props: MessageListPropsWithContext) => {
355355
356356 const minIndexForVisible = Math . min ( 1 , processedMessageList . length ) ;
357357
358- const autoscrollToTopThreshold = autoscrollToRecent ? ( isLiveStreaming ? 64 : 10 ) : undefined ;
358+ const autoscrollToTopThreshold = autoscrollToRecent ? ( isLiveStreaming ? 300 : 10 ) : undefined ;
359359
360360 const maintainVisibleContentPosition = useMemo (
361361 ( ) => ( {
@@ -637,7 +637,7 @@ const MessageListWithContext = (props: MessageListPropsWithContext) => {
637637 }
638638 } ;
639639
640- if ( maximumMessageLimit && ( threadList || isMessageRemovedFromMessageList ) ) {
640+ if ( ! maximumMessageLimit && ( threadList || isMessageRemovedFromMessageList ) ) {
641641 scrollToBottomIfNeeded ( ) ;
642642 }
643643
You can’t perform that action at this time.
0 commit comments