Merge pull request #1721 from matrix-org/t3chguy/composer_slashcmd_history
Persist contentState when sending SlashCommand via MessageComposerInput
This commit is contained in:
commit
71aa4ee9e1
1 changed files with 1 additions and 0 deletions
|
@ -723,6 +723,7 @@ export default class MessageComposerInput extends React.Component {
|
||||||
const cmd = SlashCommands.processInput(this.props.room.roomId, commandText);
|
const cmd = SlashCommands.processInput(this.props.room.roomId, commandText);
|
||||||
if (cmd) {
|
if (cmd) {
|
||||||
if (!cmd.error) {
|
if (!cmd.error) {
|
||||||
|
this.historyManager.save(contentState, this.state.isRichtextEnabled ? 'html' : 'markdown');
|
||||||
this.setState({
|
this.setState({
|
||||||
editorState: this.createEditorState(),
|
editorState: this.createEditorState(),
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue