From f8047c63fe6783199e2a5ab1439865a8cfebcd66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Mon, 3 Dec 2018 14:17:46 +0100 Subject: [PATCH] Fix error when creating MUC Fixes #9473 --- gajim/common/helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gajim/common/helpers.py b/gajim/common/helpers.py index bc6baff40..5a4215bc4 100644 --- a/gajim/common/helpers.py +++ b/gajim/common/helpers.py @@ -55,7 +55,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') @@ -1465,8 +1464,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')