Commit 01531061 authored by mathieui's avatar mathieui

Also do not send empty <replace/> with each message

parent 8fbf50fa
......@@ -1974,6 +1974,8 @@ class PrivateTab(ChatTab):
replaced = True
except:
log.error('Unable to correct a message', exc_info=True)
else:
del msg['replace']
if msg['body'].find('\x19') != -1:
msg.enable('html')
......@@ -3195,6 +3197,8 @@ class ConversationTab(ChatTab):
replaced = True
except:
log.error('Unable to correct a message', exc_info=True)
else:
del msg['replace']
if msg['body'].find('\x19') != -1:
msg.enable('html')
msg['html']['body'] = xhtml.poezio_colors_to_html(msg['body'])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment