mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-02-13 17:10:06 +00:00
fix roomId is not provided to markAsRead
This commit is contained in:
parent
eef9c1b5a6
commit
98c90e16cf
|
@ -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]);
|
||||
|
|
Loading…
Reference in a new issue