From 2e3a2d38c0de64c8279dfdbc34de23da8bd63604 Mon Sep 17 00:00:00 2001 From: Marcus Hoffmann Date: Thu, 26 Nov 2020 01:58:49 +0100 Subject: [PATCH] fix: mark read wasn't sending read receipts --- lib/src/room.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/room.dart b/lib/src/room.dart index 921f1c61..f6e6f361 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -445,6 +445,9 @@ class Room { EventType.MarkedUnread, MarkedUnread(unread).toJson(), ); + if (unread == false) { + await sendReadReceipt(lastEvent.eventId); + } } /// Returns true if this room has a m.favourite tag.