unbreak /markdown off

This commit is contained in:
Matthew Hodgson 2017-02-09 01:18:09 +00:00
parent 449519dc32
commit 231997dd63
2 changed files with 2 additions and 2 deletions

View file

@ -352,7 +352,7 @@ export default React.createClass({
MatrixClientPeg.get().sendHtmlMessage(this.props.room.roomId, contentText, htmlText);
}
else {
const contentText = mdown.toPlaintext();
if (mdown) contentText = mdown.toPlaintext();
sendMessagePromise = isEmote ?
MatrixClientPeg.get().sendEmoteMessage(this.props.room.roomId, contentText) :
MatrixClientPeg.get().sendTextMessage(this.props.room.roomId, contentText);