Mark reactions as read when reading from Matrix

This commit is contained in:
Tulir Asokan
2022-04-01 15:56:16 +03:00
parent 39ab1d0c22
commit 61f3c39cc2
4 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -1425,7 +1425,7 @@ class Portal(DBPortal, BasePortal):
f"{message.mxid}/{message.tgid} as read by {user.mxid}/{user.tgid}"
)
await user.client.send_read_acknowledge(
self.peer, max_id=message.tgid, clear_mentions=True
self.peer, max_id=message.tgid, clear_mentions=True, clear_reactions=True
)
if self.peer_type == "channel" and not self.megagroup:
asyncio.create_task(self._try_handle_read_for_sponsored_msg(user, event_id, timestamp))