diff --git a/lib/src/Room.dart b/lib/src/Room.dart index 9e10dea..0bfb75b 100644 --- a/lib/src/Room.dart +++ b/lib/src/Room.dart @@ -330,6 +330,7 @@ class Room { }); } + /// Sets this room as a direct chat for this user. Future addToDirectChat(String userID) async { Map> directChats = await client.store.getAccountDataDirectChats(); @@ -347,6 +348,7 @@ class Room { return resp; } + /// Sends *m.fully_read* and *m.read* for the given event ID. Future sendReadReceipt(String eventID) async { final dynamic resp = client.connection.jsonRequest( type: "POST", @@ -419,6 +421,7 @@ class Room { return room; } + /// Creates a timeline from the store. Returns a [Timeline] object. Future getTimeline( {onTimelineUpdateCallback onUpdate, onTimelineInsertCallback onInsert}) async {