This commit is contained in:
Denis Fomin 2011-09-27 16:19:20 +03:00
commit 2697a4b95d
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