"Handle" missing database messages when handling edits

This commit is contained in:
Tulir Asokan
2018-02-17 13:38:22 +02:00
parent 427d97a1ff
commit 504be22b4b
+3
View File
@@ -801,6 +801,9 @@ class Portal:
mxid = response["event_id"]
msg = DBMessage.query.get((evt.id, tg_space))
if not msg:
# Oh crap
return
msg.mxid = mxid
msg.mx_room = self.mxid
DBMessage.query \