Skip to content
Snippets Groups Projects
Commit 798c412c authored by Brendan Taylor's avatar Brendan Taylor
Browse files

handle XEP-0200 encrypted messages with extra unencrypted bodies

parent 879ceac3
No related branches found
No related tags found
No related merge requests found
......@@ -281,6 +281,11 @@ def encrypt(self, encryptable):
return self.encrypter.encrypt(padded)
def decrypt_stanza(self, stanza):
# delete the unencrypted explanation body, if it exists
orig_body = stanza.getTag('body')
if orig_body:
stanza.delChild(orig_body)
c = stanza.getTag(name='c',
namespace='http://www.xmpp.org/extensions/xep-0200.html#ns')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment