Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Deployment of js-sdk: Make timeline a getter #12165

Closed
wants to merge 4 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/Unread.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export function doesRoomHaveUnreadMessages(room: Room): boolean {
}

function doesTimelineHaveUnreadMessages(room: Room, timeline: Array<MatrixEvent>): boolean {
// trigger again
const myUserId = room.client.getSafeUserId();
const latestImportantEventId = findLatestImportantEvent(room.client, timeline)?.getId();
if (latestImportantEventId) {
Expand Down
Loading