Make old message composer use new markdown

Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
pull/21833/head
Johannes Löthberg 2017-01-17 20:37:27 +01:00
parent 35d70f0b35
commit c819b433a2
1 changed files with 2 additions and 1 deletions

View File

@ -325,12 +325,13 @@ module.exports = React.createClass({
}
if (send_markdown) {
const htmlText = mdown.toHTML();
const htmlText = mdown.render(true);
sendMessagePromise = isEmote ?
MatrixClientPeg.get().sendHtmlEmote(this.props.room.roomId, contentText, htmlText) :
MatrixClientPeg.get().sendHtmlMessage(this.props.room.roomId, contentText, htmlText);
}
else {
const contentText = mdown.render(false);
sendMessagePromise = isEmote ?
MatrixClientPeg.get().sendEmoteMessage(this.props.room.roomId, contentText) :
MatrixClientPeg.get().sendTextMessage(this.props.room.roomId, contentText);