Fix E2E decryption. Fixes #6984

This commit is contained in:
Yann Leboulanger 2011-09-26 21:57:30 +02:00
parent 2e648d06be
commit f460991539
1 changed files with 4 additions and 1 deletions

View File

@ -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