Merge pull request #1721 from matrix-org/t3chguy/composer_slashcmd_history

Persist contentState when sending SlashCommand via MessageComposerInput
This commit is contained in:
Luke Barnard 2018-02-06 09:14:36 +00:00 committed by GitHub
commit 71aa4ee9e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -723,6 +723,7 @@ export default class MessageComposerInput extends React.Component {
const cmd = SlashCommands.processInput(this.props.room.roomId, commandText);
if (cmd) {
if (!cmd.error) {
this.historyManager.save(contentState, this.state.isRichtextEnabled ? 'html' : 'markdown');
this.setState({
editorState: this.createEditorState(),
});