Commit 1d11e066 authored by Philipp Hörist's avatar Philipp Hörist

Fix error when creating MUC

Fixes #9473
parent 3f2e3c6b
Pipeline #2741 passed with stages
in 5 minutes and 8 seconds
......@@ -56,7 +56,6 @@ from gajim.common import configpaths
from gajim.common.i18n import Q_
from gajim.common.i18n import _
from gajim.common.i18n import ngettext
from gajim.common.caps_cache import muc_caps_cache
log = logging.getLogger('gajim.c.helpers')
......@@ -1450,8 +1449,9 @@ def call_counter(func):
return helper
def get_sync_threshold(jid, archive_info):
cache = caps_cache.muc_caps_cache
if archive_info is None or archive_info.sync_threshold is None:
if muc_caps_cache.supports(jid, 'muc#roomconfig_membersonly'):
if cache.supports(jid, 'muc#roomconfig_membersonly'):
threshold = app.config.get('private_room_sync_threshold')
else:
threshold = app.config.get('public_room_sync_threshold')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment