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-03-01 17:13:55 +0300
committerPhilipp Hörist <forenjunkie@chello.at>2017-03-01 17:13:55 +0300
commit4d2e07634fb806ab6902b56d915582521be47a73 (patch)
tree7fb85a4832bac483fa466b35f4f939756486909b /omemo/omemoplugin.py
parent24400fea568fd4a9e11bfb40451616cfb6e56e80 (diff)
[omemo] Use correct tag for EME
Diffstat (limited to 'omemo/omemoplugin.py')
-rw-r--r--omemo/omemoplugin.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/omemo/omemoplugin.py b/omemo/omemoplugin.py
index 8b4a71b..06d8839 100644
--- a/omemo/omemoplugin.py
+++ b/omemo/omemoplugin.py
@@ -549,11 +549,11 @@ class OmemoPlugin(GajimPlugin):
event.msg_iq.delChild('body')
event.msg_iq.addChild(node=encrypted_node)
- # XEP-xxxx: Explicit Message Encryption
- if not event.msg_iq.getTag('encrypted', attrs={'xmlns': NS_EME}):
- eme_node = Node('encrypted', attrs={'xmlns': NS_EME,
- 'name': 'OMEMO',
- 'namespace': NS_OMEMO})
+ # XEP-0380: Explicit Message Encryption
+ if not event.msg_iq.getTag('encryption', attrs={'xmlns': NS_EME}):
+ eme_node = Node('encryption', attrs={'xmlns': NS_EME,
+ 'name': 'OMEMO',
+ 'namespace': NS_OMEMO})
event.msg_iq.addChild(node=eme_node)
# Add Message for devices that dont support OMEMO
@@ -662,11 +662,11 @@ class OmemoPlugin(GajimPlugin):
event.msg_iq.addChild(node=encrypted_node)
- # XEP-xxxx: Explicit Message Encryption
- if not event.msg_iq.getTag('encrypted', attrs={'xmlns': NS_EME}):
- eme_node = Node('encrypted', attrs={'xmlns': NS_EME,
- 'name': 'OMEMO',
- 'namespace': NS_OMEMO})
+ # XEP-0380: Explicit Message Encryption
+ if not event.msg_iq.getTag('encryption', attrs={'xmlns': NS_EME}):
+ eme_node = Node('encryption', attrs={'xmlns': NS_EME,
+ 'name': 'OMEMO',
+ 'namespace': NS_OMEMO})
event.msg_iq.addChild(node=eme_node)
# Store Hint for MAM