Skip to content
Snippets Groups Projects
Commit 00554ce5 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

[omemo] Make sure from attr is a string

parent ad506353
No related branches found
No related tags found
No related merge requests found
......@@ -1041,6 +1041,8 @@ class OmemoPlugin(GajimPlugin):
self.publish_own_devices_list(account, new=True)
return False
contact_jid = stanza.getAttr('from')
if isinstance(contact_jid, nbxmpp.JID):
contact_jid = str(contact_jid)
if contact_jid == my_jid:
state.set_own_devices(devices_list)
state.store.sessionStore.setActiveState(devices_list, my_jid)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment