From 77dc975023f9419ed5379b0b7a6945e218a72c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 24 Mar 2018 10:52:16 +0100 Subject: [PATCH] Only test if MUCs are on the blacklist --- gajim/common/message_archiving.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gajim/common/message_archiving.py b/gajim/common/message_archiving.py index 6301ac3fb..316ad4cdb 100644 --- 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(