From 00554ce55f68c55b3de80f65d875f7b207627303 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=B6rist?= Date: Mon, 7 Aug 2017 18:00:00 +0200 Subject: [omemo] Make sure from attr is a string --- omemo/omemoplugin.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'omemo') diff --git a/omemo/omemoplugin.py b/omemo/omemoplugin.py index 47aa342..4302ccb 100644 --- a/omemo/omemoplugin.py +++ b/omemo/omemoplugin.py @@ -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) -- cgit v1.2.3