From 0cb8c0301b82c74d1586c1a59f59a5e22dfc7da2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Sat, 11 Nov 2017 16:33:35 +0100 Subject: [omemo] Ignore 'Local' account --- omemo/omemoplugin.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'omemo/omemoplugin.py') diff --git a/omemo/omemoplugin.py b/omemo/omemoplugin.py index fa2dfd4..715e405 100644 --- a/omemo/omemoplugin.py +++ b/omemo/omemoplugin.py @@ -125,6 +125,8 @@ class OmemoPlugin(GajimPlugin): event : SignedInEvent """ account = event.conn.name + if account == 'Local': + return if account in self.disabled_accounts: return if account not in self.connections: @@ -135,6 +137,8 @@ class OmemoPlugin(GajimPlugin): """ Method called when the Plugin is activated in the PluginManager """ for account in app.connections: + if account == 'Local': + continue if account in self.disabled_accounts: continue self.connections[account] = OMEMOConnection(account, self) @@ -144,6 +148,8 @@ class OmemoPlugin(GajimPlugin): """ Method called when the Plugin is deactivated in the PluginManager """ for account in self.connections: + if account == 'Local': + continue self.connections[account].deactivate() def activate_encryption(self, chat_control): -- cgit v1.2.3