diff options
author | lovetox <philipp@hoerist.com> | 2022-08-13 01:03:04 +0300 |
---|---|---|
committer | lovetox <philipp@hoerist.com> | 2022-08-13 01:03:04 +0300 |
commit | d9ac569c221dca9ef8272837a516a10dffda504f (patch) | |
tree | 544c74871ac5fa843f8d216bb556ee02eca0c6ee | |
parent | c327dbfe9af4e97d23e7547b7d112bf257f4f2b5 (diff) |
imprv: ChatControl: Show error if encryption plugin is missing
-rw-r--r-- | gajim/gtk/chat_stack.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gajim/gtk/chat_stack.py b/gajim/gtk/chat_stack.py index 9a0aecd56..37cb2e7f1 100644 --- a/gajim/gtk/chat_stack.py +++ b/gajim/gtk/chat_stack.py @@ -41,6 +41,7 @@ from gajim.common.modules.contacts import GroupchatContact from gajim.common.modules.contacts import GroupchatParticipant from gajim.common.structs import OutgoingMessage from gajim.common.types import ChatContactT +from gajim.gui.dialogs import ErrorDialog from .chat_banner import ChatBanner from .chat_function_page import ChatFunctionPage @@ -664,6 +665,11 @@ class ChatStack(Gtk.Stack, EventHelper): encryption = contact.settings.get('encryption') if encryption: + if encryption not in app.plugin_manager.encryption_plugins: + ErrorDialog(_('Encryption error'), + _('Missing necessary encryption plugin')) + return + self._chat_control.sendmessage = True app.plugin_manager.extension_point( 'send_message' + encryption, |