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

Commits:
77dc9750 by Philipp Hörist at 2018-03-24T10:52:16+01:00
Only test if MUCs are on the blacklist

- - - - -


1 changed file:

- gajim/common/message_archiving.py


Changes:

=====================================
gajim/common/message_archiving.py
=====================================
--- a/gajim/common/message_archiving.py
+++ b/gajim/common/message_archiving.py
@@ -203,10 +203,11 @@ class ConnectionArchive313:
             return
 
         namespace = self.archiving_namespace
+        blacklisted = False
         if obj.groupchat:
             namespace = muc_caps_cache.get_mam_namespace(obj.room_jid)
+            blacklisted = obj.room_jid in helpers.get_mam_blacklist()
 
-        blacklisted = obj.room_jid in helpers.get_mam_blacklist()
         if namespace != nbxmpp.NS_MAM_2 or blacklisted:
             # Fallback duplicate search without stanza-id
             duplicate = app.logger.search_for_duplicate(



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/77dc975023f9419ed5379b0b7a6945e218a72c12

---
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/77dc975023f9419ed5379b0b7a6945e218a72c12
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