fix: mark read wasn't sending read receipts

This commit is contained in:
Marcus Hoffmann 2020-11-26 01:58:49 +01:00
parent 20ae1ae20e
commit 2e3a2d38c0
1 changed files with 3 additions and 0 deletions

View File

@ -445,6 +445,9 @@ class Room {
EventType.MarkedUnread, EventType.MarkedUnread,
MarkedUnread(unread).toJson(), MarkedUnread(unread).toJson(),
); );
if (unread == false) {
await sendReadReceipt(lastEvent.eventId);
}
} }
/// Returns true if this room has a m.favourite tag. /// Returns true if this room has a m.favourite tag.