From f46099153905123e81e6afe457e0841c72472e1d Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 26 Sep 2011 21:57:30 +0200 Subject: [PATCH] Fix E2E decryption. Fixes #6984 --- src/common/stanza_session.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/stanza_session.py b/src/common/stanza_session.py index fc1819437..0cecfa512 100644 --- a/src/common/stanza_session.py +++ b/src/common/stanza_session.py @@ -493,7 +493,10 @@ class EncryptedStanzaSession(ArchivingStanzaSession): stanza.addChild(node=child) # 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