fix(lint): adjust RoomTimeline callback dependencies for exhaustive-deps

This commit is contained in:
Evie Gauthier committed 2026-03-13 22:21:51 -04:00
1 parent 79e4e09436
commit 188f588ce7
1 file changed
+2 -2
+2 -2
View File
@@ -799,7 +799,7 @@ export function RoomTimeline({
},
});
},
[alive, setAtBottom]
[alive, setAtBottom, room.roomId]
),
useCallback(() => {
if (!alive()) return;
@@ -807,7 +807,7 @@ export function RoomTimeline({
setTimeline(getInitialTimeline(room));
scrollToBottomRef.current.count += 1;
scrollToBottomRef.current.smooth = false;
}, [alive, room, room.roomId])
}, [alive, room])
);
useLiveEventArrive(