diff options
author | wurstsalat <mailtrash@posteo.de> | 2022-10-06 18:06:44 +0300 |
---|---|---|
committer | wurstsalat <mailtrash@posteo.de> | 2022-10-06 18:06:44 +0300 |
commit | 7601311c7d67f623d177f46086cbce3f0e33966f (patch) | |
tree | 29c0863c33af6c74606a7160df790c016eace403 /pgp/plugin.py | |
parent | f6ce830fafa85b51815207eaad4f76e82ced4e91 (diff) |
[pgp] 1.4.7
Diffstat (limited to 'pgp/plugin.py')
-rw-r--r-- | pgp/plugin.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pgp/plugin.py b/pgp/plugin.py index 45c169b..2d218cb 100644 --- a/pgp/plugin.py +++ b/pgp/plugin.py @@ -105,7 +105,7 @@ class PGPPlugin(GajimPlugin): @staticmethod def get_pgp_module(account): - return app.connections[account].get_module('PGPLegacy') + return app.get_client(account).get_module('PGPLegacy') def activate(self): pass @@ -153,9 +153,9 @@ class PGPPlugin(GajimPlugin): account = chat_control.account jid = chat_control.contact.jid - con = app.connections[account] + client = app.get_client(account) try: - valid = con.get_module('PGPLegacy').has_valid_key_assigned(jid) + valid = client.get_module('PGPLegacy').has_valid_key_assigned(jid) except KeyMismatch as announced_key_id: ErrorDialog( _('PGP Key mismatch'), @@ -169,7 +169,7 @@ class PGPPlugin(GajimPlugin): _('No OpenPGP key assigned'), _('No OpenPGP key is assigned to this contact.')) chat_control.sendmessage = False - elif con.get_module('PGPLegacy').get_own_key_data() is None: + elif client.get_module('PGPLegacy').get_own_key_data() is None: ErrorDialog( _('No OpenPGP key assigned'), _('No OpenPGP key is assigned to your account.')) |