Fix message ID mapping for channels. Fixes #51

This commit is contained in:
Tulir Asokan
2018-02-06 14:05:53 +02:00
parent 72b8a25cec
commit 9145ebdc64
4 changed files with 22 additions and 15 deletions
+1
View File
@@ -177,6 +177,7 @@ class User:
if not portal or not portal.mxid:
return
# We check that these are user read receipts, so tg_space is always the user ID.
message = DBMessage.query.get((update.max_id, self.tgid))
if not message:
return