Skip to content

Commit

Permalink
Bugs fixed
Browse files Browse the repository at this point in the history
Signed-off-by: Ajay Bura <[email protected]>
  • Loading branch information
ajbura committed Dec 13, 2021
1 parent ba629f1 commit 5d38045
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/app/organisms/room/RoomViewContent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,9 @@ function RoomViewContent({ eventId, roomTimeline }) {
}
}

if (!unreadDivider) {
unreadDivider = (readEvent
&& prevMEvent?.getTs() <= readEvent.getTs()
&& readEvent.getTs() < mEvent.getTs());
}
unreadDivider = (readEvent && !unreadDivider
&& prevMEvent?.getTs() <= readEvent.getTs()
&& readEvent.getTs() < mEvent.getTs());
if (unreadDivider) {
tl.push(<Divider key={`new-${mEvent.getId()}`} variant="positive" text="New messages" />);
itemCountIndex += 1;
Expand Down

0 comments on commit 5d38045

Please sign in to comment.