MAM: Dont convert own_jid to string
We need it later as JID object
This commit is contained in:
parent
65593c613c
commit
1b11d77034
|
@ -1062,7 +1062,7 @@ class MamMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
|
||||||
|
|
||||||
def generate(self):
|
def generate(self):
|
||||||
archive_jid = self.stanza.getFrom()
|
archive_jid = self.stanza.getFrom()
|
||||||
own_jid = self.conn.get_own_jid().getStripped()
|
own_jid = self.conn.get_own_jid()
|
||||||
if archive_jid and not archive_jid.bareMatch(own_jid):
|
if archive_jid and not archive_jid.bareMatch(own_jid):
|
||||||
# MAM Message not from our Archive
|
# MAM Message not from our Archive
|
||||||
return False
|
return False
|
||||||
|
@ -1076,7 +1076,8 @@ class MamMessageReceivedEvent(nec.NetworkIncomingEvent, HelperEvent):
|
||||||
self.unique_id, origin_id = self.get_unique_id()
|
self.unique_id, origin_id = self.get_unique_id()
|
||||||
|
|
||||||
# Check for duplicates
|
# Check for duplicates
|
||||||
if app.logger.find_stanza_id(own_jid, self.unique_id, origin_id):
|
if app.logger.find_stanza_id(own_jid.getStripped(),
|
||||||
|
self.unique_id, origin_id):
|
||||||
return
|
return
|
||||||
|
|
||||||
self.msgtxt = self.msg_.getTagData('body')
|
self.msgtxt = self.msg_.getTagData('body')
|
||||||
|
|
Loading…
Reference in New Issue