Handle incoming read receipts in private chats

This commit is contained in:
Tulir Asokan
2018-02-05 23:04:21 +02:00
parent 7434393e1f
commit 286c3e8cec
3 changed files with 25 additions and 1 deletions
+4
View File
@@ -262,6 +262,10 @@ class IntentAPI:
self.ensure_joined(room_id)
return self.client.set_typing(room_id, is_typing, timeout)
def mark_read(self, room_id, event_id):
self.ensure_joined(room_id)
return self.client._send("POST", f"/rooms/{room_id}/receipt/m.read/{event_id}", content={})
def send_notice(self, room_id, text, html=None):
return self.send_text(room_id, text, html, "m.notice")