diff options
author | Philipp Hörist <forenjunkie@chello.at> | 2017-07-28 22:16:01 +0300 |
---|---|---|
committer | Philipp Hörist <forenjunkie@chello.at> | 2017-07-28 22:19:44 +0300 |
commit | 346da609340845280aacb4d31540f35963d763e1 (patch) | |
tree | 2cfb8185e2ae3db57ab351d84b902183283c9fc8 /omemo | |
parent | 98f7951fd3384c4773c20bf4b78d540715c39d8b (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..c29cd2f 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(nbxmpp.JID, contact_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) |