Skip to content

Commit 9106ce2

Browse files
fix: jump to message stuck in loop
1 parent ea7d275 commit 9106ce2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/meteor/client/views/room/MessageList/hooks/useTryToJumpToMessage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const useTryToJumpToMessage = ({ rid, virtualizerRef, isJumpingToMessage, messag
5454

5555
isJumpingToMessage.current = true;
5656

57-
if (RoomHistoryManager.isLoading(rid)) {
57+
if (RoomHistoryManager.isLoading(rid) || messages.length === 0) {
5858
return;
5959
}
6060

0 commit comments

Comments
 (0)