Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-11-11 18:33:35 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-11-11 18:33:35 +0300
commit0cb8c0301b82c74d1586c1a59f59a5e22dfc7da2 (patch)
treed04a7345ea4fa9d857671aa4321c2fc2d23d4b6f
parent8f11419c68bc902827935c0f4dcbfad030f6f8c3 (diff)
[omemo] Ignore 'Local' account
-rw-r--r--omemo/omemoplugin.py6
1 files changed, 6 insertions, 0 deletions
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):