You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-08-09 08:42:50 +03:00
Fix Mark all as read
in settings (#12205)
* Fix `Mark all as read` in settings * Update tests
This commit is contained in:
@@ -74,6 +74,9 @@ export function doesRoomHaveUnreadMessages(room: Room, includeThreads: boolean):
|
||||
}
|
||||
|
||||
function doesTimelineHaveUnreadMessages(room: Room, timeline: Array<MatrixEvent>): boolean {
|
||||
// The room is a space, let's ignore it
|
||||
if (room.isSpaceRoom()) return false;
|
||||
|
||||
const myUserId = room.client.getSafeUserId();
|
||||
const latestImportantEventId = findLatestImportantEvent(room.client, timeline)?.getId();
|
||||
if (latestImportantEventId) {
|
||||
|
Reference in New Issue
Block a user