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
diff options
context:
space:
mode:
authorPhilipp Hörist <forenjunkie@chello.at>2017-07-28 22:16:01 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-07-28 22:19:44 +0300
commit346da609340845280aacb4d31540f35963d763e1 (patch)
tree2cfb8185e2ae3db57ab351d84b902183283c9fc8
parent98f7951fd3384c4773c20bf4b78d540715c39d8b (diff)
[omemo] Make sure from attr is a string
-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..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)