Commit a934551c authored by Philipp Hörist's avatar Philipp Hörist

Bookmarks: Add dev config setting for testing bookmarks 2

parent f5244e37
Pipeline #4316 passed with stages
in 2 minutes and 47 seconds
......@@ -289,6 +289,7 @@ class Config:
'auto_copy': [opt_bool, True, _('Selecting text will copy it to the clipboard')],
'command_system_execute': [opt_bool, False, _('If enabled, Gajim will execute commands (/show, /sh, /execute, /exec).')],
'groupchat_roster_width': [opt_int, 210, _('Width of group chat roster in pixel')],
'dev_force_bookmark_2': [opt_bool, False, _('Force Bookmark 2 usage')],
}, {}) # type: Tuple[Dict[str, List[Any]], Dict[Any, Any]]
__options_per_key = {
......
......@@ -155,7 +155,12 @@ class Bookmarks(BaseModule):
NetworkEvent('bookmarks-received', account=self._account))
def pass_disco(self, info):
if nbxmpp.NS_BOOKMARKS_COMPAT in info.features:
if app.config.get('dev_force_bookmark_2'):
self._log.info('Forcing Bookmark 2 usage, '
'without server conversion support: %s', info.jid)
self._conversion_2 = True
elif nbxmpp.NS_BOOKMARKS_COMPAT in info.features:
self._conversion_2 = True
self._log.info('Discovered Bookmarks Conversion 2: %s', info.jid)
......
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