[omemo] Adapt to Gajim changes

This commit is contained in:
Philipp Hörist
2018-12-31 01:51:17 +01:00
parent 5fc7a77526
commit 6634da0a79
5 changed files with 157 additions and 113 deletions

View File

@@ -171,7 +171,7 @@ class OMEMOConfigDialog(GajimPluginConfigDialog):
def cleardevice_button_clicked_cb(self, button, *args):
active = self._ui.get_object('account_combobox').get_active()
account = self.account_store[active][0]
self.plugin.connections[account].publish_own_devices_list(new=True)
app.connections[account].get_module('OMEMO').publish_own_devices_list(new=True)
self.update_context_list()
def refresh_button_clicked_cb(self, button, *args):

View File

@@ -60,7 +60,7 @@ class KeyDialog(Gtk.Dialog):
self._windowinstances = windowinstances
self._account = self._contact.account.name
self._plugin = plugin
self._con = plugin.connections[self._account]
self._con = app.connections[self._account].get_module('OMEMO')
self.omemostate = self._plugin.get_omemo(self._account)
self._own_jid = app.get_jid_from_account(self._account)