diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-08-07 19:00:00 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-08-07 19:03:03 +0300 |
commit | 00554ce55f68c55b3de80f65d875f7b207627303 (patch) | |
tree | d945e58a79230d20c9fc38239e1638a9c09096c2 /omemo | |
parent | ad50635347a070adf7a232a2ee791b3aae7d5433 (diff) |
[omemo] Make sure from attr is a string
Diffstat (limited to 'omemo')
-rw-r--r-- | omemo/omemoplugin.py | 2 |
1 files changed, 2 insertions, 0 deletions
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) |