Commit 0cb8c030 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Ignore 'Local' account

parent 8f11419c
...@@ -125,6 +125,8 @@ class OmemoPlugin(GajimPlugin): ...@@ -125,6 +125,8 @@ class OmemoPlugin(GajimPlugin):
event : SignedInEvent event : SignedInEvent
""" """
account = event.conn.name account = event.conn.name
if account == 'Local':
return
if account in self.disabled_accounts: if account in self.disabled_accounts:
return return
if account not in self.connections: if account not in self.connections:
...@@ -135,6 +137,8 @@ class OmemoPlugin(GajimPlugin): ...@@ -135,6 +137,8 @@ class OmemoPlugin(GajimPlugin):
""" Method called when the Plugin is activated in the PluginManager """ Method called when the Plugin is activated in the PluginManager
""" """
for account in app.connections: for account in app.connections:
if account == 'Local':
continue
if account in self.disabled_accounts: if account in self.disabled_accounts:
continue continue
self.connections[account] = OMEMOConnection(account, self) self.connections[account] = OMEMOConnection(account, self)
...@@ -144,6 +148,8 @@ class OmemoPlugin(GajimPlugin): ...@@ -144,6 +148,8 @@ class OmemoPlugin(GajimPlugin):
""" Method called when the Plugin is deactivated in the PluginManager """ Method called when the Plugin is deactivated in the PluginManager
""" """
for account in self.connections: for account in self.connections:
if account == 'Local':
continue
self.connections[account].deactivate() self.connections[account].deactivate()
def activate_encryption(self, chat_control): def activate_encryption(self, chat_control):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment