Fix crashes
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
299ceac557
commit
20443f8a4d
2 changed files with 3 additions and 2 deletions
|
|
@ -534,7 +534,8 @@ function RoomViewContent({ eventId, roomTimeline }) {
|
|||
timelineScroll.scrollToIndex(jumpToItemIndex, 80);
|
||||
}
|
||||
if (timelineScroll.bottom < 16 && !roomTimeline.canPaginateForward()) {
|
||||
if (readEventStore.getItem()?.getId() === roomTimeline.getReadUpToEventId()) {
|
||||
const readUpToId = roomTimeline.getReadUpToEventId();
|
||||
if (readEventStore.getItem()?.getId() === readUpToId || readUpToId === null) {
|
||||
requestAnimationFrame(() => roomTimeline.markAllAsRead());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue