diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-04-15 12:59:06 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-04-15 12:59:06 +0300 |
commit | 5da8674677d9d505b67a19751e24765d310c2034 (patch) | |
tree | c3a368beacccef976b2db2438df5144649f20a68 /omemo | |
parent | 49ed50c5631da190ac761d0abdc7b1f50c1bbaa5 (diff) |
[omemo] Add aesgcm to Gajims uri schemes
Diffstat (limited to 'omemo')
-rw-r--r-- | omemo/omemoplugin.py | 6 |
1 files changed, 6 insertions, 0 deletions
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') |