[omemo] Adapt to Gajim changes

This commit is contained in:
wurstsalat
2021-10-21 17:28:58 +02:00
parent e97372d6d6
commit 0277f63129
5 changed files with 19 additions and 20 deletions

View File

@@ -67,7 +67,7 @@ class OMEMOConfigDialog(GajimPluginConfigDialog):
return False
def update_account_store(self):
for account in sorted(app.contacts.get_accounts()):
for account in sorted(app.settings.get_active_accounts()):
if account in self.disabled_accounts:
continue
if account == 'Local':

View File

@@ -69,7 +69,7 @@ class KeyDialog(Gtk.Dialog):
self._groupchat = groupchat
self._contact = contact
self._windows = windows
self._account = self._contact.account.name
self._account = self._contact.account
self._plugin = plugin
self._omemo = self._plugin.get_omemo(self._account)
self._own_jid = app.get_jid_from_account(self._account)