From edf79f5d1ce26a7232e22bfffc23c90bd7f678ba Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 11 Jun 2019 14:13:30 +0200 Subject: [PATCH] Add method to send read receipts --- lib/src/Room.dart | 8 ++++++++ 1 file changed, 8 insertions(+) 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 {