Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim-plugins.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/gotr
diff options
context:
space:
mode:
Diffstat (limited to 'gotr')
-rw-r--r--gotr/otrmodule.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/gotr/otrmodule.py b/gotr/otrmodule.py
index 72bf190..a61b522 100644
--- a/gotr/otrmodule.py
+++ b/gotr/otrmodule.py
@@ -607,6 +607,8 @@ class OtrPlugin(GajimPlugin):
stripper.feed((msgtxt or '').decode('utf8'))
event.msgtxt = stripper.stripped_data
event.stanza.setBody(event.msgtxt)
+ if event.stanza.getXHTML():
+ event.stanza.delChild('html')
event.stanza.setXHTML((msgtxt or '').decode('utf8'))
return PASS