[omemo] Adapt to Gajim changes

This commit is contained in:
wurstsalat
2021-10-24 23:18:07 +02:00
parent 765a660c38
commit 92e27970f7
2 changed files with 6 additions and 8 deletions

View File

@@ -82,8 +82,9 @@ class DeviceManager:
def get_devices_for_encryption(self, jid):
devices_for_encryption = []
# TODO:
if app.contacts.get_groupchat_contact(self._account, jid) is not None:
client = app.get_client(self._account)
contact = client.get_module('Contacts').get_contact(jid)
if contact.is_groupchat:
devices_for_encryption = self._get_devices_for_muc_encryption(jid)
else:
devices_for_encryption = self._get_devices_for_encryption(jid)