changeset 1813:cf53e3cc702a

plugin XEP-0071: removed cleanXHTML use for sent message: it's not necessary in this direction
author Goffi <goffi@goffi.org>
date Tue, 19 Jan 2016 12:08:38 +0100
parents 160b0d4c6520
children 602a47ccc07c
files src/plugins/plugin_xep_0071.py
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/plugin_xep_0071.py	Tue Jan 19 11:51:07 2016 +0100
+++ b/src/plugins/plugin_xep_0071.py	Tue Jan 19 12:08:38 2016 +0100
@@ -22,7 +22,6 @@
 from sat.core.log import getLogger
 log = getLogger(__name__)
 
-from sat.tools import xml_tools
 from wokkel import disco, iwokkel
 from zope.interface import implements
 # from lxml import etree
@@ -117,8 +116,6 @@
             d = self.synt_plg.convert(rich, syntax, self.SYNTAX_XHTML_IM)
             if xhtml:
                 raise exceptions.DataError(_("Can't have xhtml and rich content at the same time"))
-        if xhtml:
-            d = self.synt_plg.cleanXHTML(xhtml)
         d.addCallback(syntax_converted)
         return d