Make old message composer use new markdown
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
This commit is contained in:
parent
35d70f0b35
commit
c819b433a2
1 changed files with 2 additions and 1 deletions
|
@ -325,12 +325,13 @@ module.exports = React.createClass({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (send_markdown) {
|
if (send_markdown) {
|
||||||
const htmlText = mdown.toHTML();
|
const htmlText = mdown.render(true);
|
||||||
sendMessagePromise = isEmote ?
|
sendMessagePromise = isEmote ?
|
||||||
MatrixClientPeg.get().sendHtmlEmote(this.props.room.roomId, contentText, htmlText) :
|
MatrixClientPeg.get().sendHtmlEmote(this.props.room.roomId, contentText, htmlText) :
|
||||||
MatrixClientPeg.get().sendHtmlMessage(this.props.room.roomId, contentText, htmlText);
|
MatrixClientPeg.get().sendHtmlMessage(this.props.room.roomId, contentText, htmlText);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
const contentText = mdown.render(false);
|
||||||
sendMessagePromise = isEmote ?
|
sendMessagePromise = isEmote ?
|
||||||
MatrixClientPeg.get().sendEmoteMessage(this.props.room.roomId, contentText) :
|
MatrixClientPeg.get().sendEmoteMessage(this.props.room.roomId, contentText) :
|
||||||
MatrixClientPeg.get().sendTextMessage(this.props.room.roomId, contentText);
|
MatrixClientPeg.get().sendTextMessage(this.props.room.roomId, contentText);
|
||||||
|
|
Loading…
Reference in a new issue