Skip to content
Snippets Groups Projects
Commit 6b24595a authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

Fix E2E decryption. Fixes #6984

parent fbfa0c71
No related branches found
No related tags found
No related merge requests found
...@@ -493,7 +493,10 @@ class EncryptedStanzaSession(ArchivingStanzaSession): ...@@ -493,7 +493,10 @@ class EncryptedStanzaSession(ArchivingStanzaSession):
stanza.addChild(node=child) stanza.addChild(node=child)
# replace non-character unicode # replace non-character unicode
stranza = self.conn.connection.Dispatcher.replace_non_character(stanza) body = stanza.getBody()
if body:
stanza.setBody(
self.conn.connection.Dispatcher.replace_non_character(body))
return stanza return stanza
......
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