diff --git a/lib/src/Room.dart b/lib/src/Room.dart index 69c0853..0c0de47 100644 --- a/lib/src/Room.dart +++ b/lib/src/Room.dart @@ -280,6 +280,14 @@ class Room { }); } + Future sendReadReceipt(String eventID) async { + final dynamic resp = client.connection.jsonRequest( + type: "fully_read", + action: "/client/r0/rooms/$id/read_markers", + data: {"m.fully_read": eventID,"m.read": eventID,}); + return resp; + } + /// Returns a Room from a json String which comes normally from the store. static Future getRoomFromTableRow(Map row, Client matrix) async {