diff --git a/src/app/organisms/room/RoomViewContent.jsx b/src/app/organisms/room/RoomViewContent.jsx index 6f4e433..c7ba8f9 100644 --- a/src/app/organisms/room/RoomViewContent.jsx +++ b/src/app/organisms/room/RoomViewContent.jsx @@ -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(); itemCountIndex += 1;