Only test if MUCs are on the blacklist

This commit is contained in:
Philipp Hörist 2018-03-24 10:52:16 +01:00
parent af2c66b50b
commit 77dc975023
1 changed files with 2 additions and 1 deletions

View File

@ -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()
if namespace != nbxmpp.NS_MAM_2 or blacklisted:
# Fallback duplicate search without stanza-id
duplicate = app.logger.search_for_duplicate(