Skip to content

Commit 094ec58

Browse files
authored
runfix: Scroll to new elements when switching conversation (#13981)
1 parent 1358c2e commit 094ec58

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/script/components/MessagesList/MessageList.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ const MessagesList: FC<MessagesListParams> = ({
242242

243243
useEffect(() => {
244244
onLoading(true);
245+
setLoaded(false);
246+
conversationLastReadTimestamp.current = conversation.last_read_timestamp();
245247
loadConversation(conversation, initialMessage).then(() => {
246248
setTimeout(() => {
247249
setLoaded(true);

0 commit comments

Comments
 (0)