diff options
Diffstat (limited to 'omemo/omemoplugin.py')
-rw-r--r-- | omemo/omemoplugin.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/omemo/omemoplugin.py b/omemo/omemoplugin.py index 9c74f93..0133e81 100644 --- a/omemo/omemoplugin.py +++ b/omemo/omemoplugin.py @@ -106,7 +106,8 @@ class OmemoPlugin(GajimPlugin): 'encryption_dialog' + self.encryption_name: ( self.on_encryption_button_clicked, None), 'encryption_state' + self.encryption_name: ( - self.encryption_state, None)} + self.encryption_state, None), + 'update_caps': (self._update_caps, None)} SUPPORTED_PERSONAL_USER_EVENTS.append(DevicelistPEP) self.disabled_accounts = [] @@ -159,6 +160,11 @@ class OmemoPlugin(GajimPlugin): continue self.connections[account].deactivate() + def _update_caps(self, account): + if account == 'Local': + return + self.connections[account].update_caps(account) + def activate_encryption(self, chat_control): if isinstance(chat_control, GroupchatControl): omemo_con = self.connections[chat_control.account] |