"Handle" missing database messages when handling edits
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user