Philipp Hörist pushed to branch master at gajim / gajim

Commits:
1b11d770 by Philipp Hörist at 2017-12-17T17:56:11+01:00
MAM: Dont convert own_jid to string

We need it later as JID object

- - - - -


1 changed file:

- gajim/common/connection_handlers_events.py


Changes:

=====================================
gajim/common/connection_handlers_events.py
=====================================
--- a/gajim/common/connection_handlers_events.py
+++ b/gajim/common/connection_handlers_events.py
@@ -1062,7 +1062,7 @@ class MamMessageReceivedEvent(nec.NetworkIncomingEvent, 
HelperEvent):
 
     def generate(self):
         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):
             # MAM Message not from our Archive
             return False
@@ -1076,7 +1076,8 @@ class MamMessageReceivedEvent(nec.NetworkIncomingEvent, 
HelperEvent):
         self.unique_id, origin_id = self.get_unique_id()
 
         # 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
 
         self.msgtxt = self.msg_.getTagData('body')



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/1b11d77034c1c47c134c80ca9b497c76e1e6f277

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/1b11d77034c1c47c134c80ca9b497c76e1e6f277
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to