plugin XEP-0374: exluce openpgp element from XEP-0373 on send trigger:
the `openpgp` element is excluded to avoid useless double encryption. rel 380
This commit is contained in:
parent
da9725479b
commit
b91bc6fa2d
1 changed files with 3 additions and 0 deletions
|
|
@ -382,6 +382,9 @@ class XEP_0374:
|
|||
# TODO: There should probably be explicitly forbidden elements here too, just as
|
||||
# for XEP-0420
|
||||
for child in list(stanza.elements()):
|
||||
if child.name == "openpgp" and child.uri == NS_OX:
|
||||
log.debug("not re-encrypting encrypted OX element")
|
||||
continue
|
||||
# Remove the child from the stanza
|
||||
stanza.children.remove(child)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue