Bugs fixed

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-12-13 21:18:23 +05:30
parent ba629f1764
commit 5d380453a4

View file

@ -608,11 +608,9 @@ function RoomViewContent({ eventId, roomTimeline }) {
} }
} }
if (!unreadDivider) { unreadDivider = (readEvent && !unreadDivider
unreadDivider = (readEvent && prevMEvent?.getTs() <= readEvent.getTs()
&& prevMEvent?.getTs() <= readEvent.getTs() && readEvent.getTs() < mEvent.getTs());
&& readEvent.getTs() < mEvent.getTs());
}
if (unreadDivider) { if (unreadDivider) {
tl.push(<Divider key={`new-${mEvent.getId()}`} variant="positive" text="New messages" />); tl.push(<Divider key={`new-${mEvent.getId()}`} variant="positive" text="New messages" />);
itemCountIndex += 1; itemCountIndex += 1;