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

Commits:
1d11e066 by Philipp Hörist at 2018-12-03T13:17:46Z
Fix error when creating MUC

Fixes #9473

- - - - -


1 changed file:

- gajim/common/helpers.py


Changes:

=====================================
gajim/common/helpers.py
=====================================
@@ -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')



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/commit/1d11e06647152ad29bb78253678a1471aff5ac98

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