Skip to content
Snippets Groups Projects
Commit e24d4f8c authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Fix receiving MAM Messages from ourself

This is a regression from the refactoring
parent 1f5e927c
No related branches found
No related tags found
No related merge requests found
......@@ -1051,7 +1051,11 @@ class MamMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
self.query_id = self.result.getAttr('queryid')
frm = self.msg_.getFrom()
# Some servers dont set the 'to' attribute when
# we send a message to ourself
to = self.msg_.getTo()
if to is None:
to = own_jid
if frm.bareMatch(own_jid):
self.stanza_id = self.msg_.getOriginID()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment