Commit 4203bb37 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Make sure OMEMOConnection exists

parent b9831e98
...@@ -163,6 +163,8 @@ class OmemoPlugin(GajimPlugin): ...@@ -163,6 +163,8 @@ class OmemoPlugin(GajimPlugin):
def _update_caps(self, account): def _update_caps(self, account):
if account == 'Local': if account == 'Local':
return return
if account not in self.connections:
self.connections[account] = OMEMOConnection(account, self)
self.connections[account].update_caps(account) self.connections[account].update_caps(account)
def activate_encryption(self, chat_control): def activate_encryption(self, chat_control):
......
Supports Markdown
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