From 5da8674677d9d505b67a19751e24765d310c2034 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 15 Apr 2017 11:59:06 +0200 Subject: [PATCH] [omemo] Add aesgcm to Gajims uri schemes --- omemo/omemoplugin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/omemo/omemoplugin.py b/omemo/omemoplugin.py index eec31c5..ca7c093 100644 --- a/omemo/omemoplugin.py +++ b/omemo/omemoplugin.py @@ -137,6 +137,12 @@ class OmemoPlugin(GajimPlugin): for account in self.plugin.config['DISABLED_ACCOUNTS']: self.disabled_accounts.append(account) + # add aesgcm:// uri scheme to config + schemes = gajim.config.get('uri_schemes') + if 'aesgcm://' not in schemes.split(): + schemes += ' aesgcm://' + gajim.config.set('uri_schemes', schemes) + def migrate_dbpath(self, account, my_jid): old_dbpath = os.path.join(DB_DIR_OLD, 'omemo_' + account + '.db') new_dbpath = os.path.join(DB_DIR_NEW, 'omemo_' + my_jid + '.db')