fix roomId is not provided to markAsRead

This commit is contained in:
Ajay Bura 2023-10-18 20:14:25 +05:30
parent eef9c1b5a6
commit 98c90e16cf

View file

@ -766,7 +766,7 @@ export function RoomTimeline({ room, eventId, roomInputRef, editor }: RoomTimeli
const evtTimeline = getEventTimeline(room, unreadInfo.readUptoEventId);
const latestTimeline = evtTimeline && getFirstLinkedTimeline(evtTimeline, Direction.Forward);
if (latestTimeline === room.getLiveTimeline()) {
markAsRead();
markAsRead(room.roomId);
}
}
}, [room, unreadInfo, liveTimelineLinked, rangeAtEnd, atBottom]);