Merge pull request #1166 from matrix-org/luke/fix-rte-wrong-history-format

Always store sent MD messages as MD in history
pull/21833/head
Luke Barnard 2017-06-30 16:05:45 +01:00 committed by GitHub
commit 0b46184a21
1 changed files with 9 additions and 3 deletions

View File

@ -556,9 +556,15 @@ export default class MessageComposerInput extends React.Component {
sendTextFn = this.client.sendEmoteMessage;
}
if (this.state.isRichtextEnabled) {
this.historyManager.addItem(
contentHTML ? contentHTML : contentText,
contentHTML ? 'html' : 'markdown');
contentHTML ? 'html' : 'markdown',
);
} else {
// Always store MD input as input history
this.historyManager.addItem(contentText, 'markdown');
}
let sendMessagePromise;
if (contentHTML) {