We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b697372 commit 350a99aCopy full SHA for 350a99a
package/src/components/MessageList/MessageFlashList.tsx
@@ -468,11 +468,11 @@ const MessageListFlashListWithContext = (props: MessageListFlashListPropsWithCon
468
469
useEffect(() => {
470
const handleEvent = (event: Event) => {
471
- if (event.message?.user?.id === client.userID) {
472
- setAutoScrollToRecent(true);
473
- } else {
+ if (event.message?.user?.id !== client.userID) {
474
if (!scrollToBottomButtonVisible) {
475
+ flashListRef.current?.scrollToEnd({
+ animated: true,
+ });
476
} else {
477
setAutoScrollToRecent(false);
478
}
0 commit comments