Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/omemo
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-08-07 19:00:00 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-08-07 19:03:03 +0300
commit00554ce55f68c55b3de80f65d875f7b207627303 (patch)
treed945e58a79230d20c9fc38239e1638a9c09096c2 /omemo
parentad50635347a070adf7a232a2ee791b3aae7d5433 (diff)
[omemo] Make sure from attr is a string
Diffstat (limited to 'omemo')
-rw-r--r--omemo/omemoplugin.py2
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)