mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-26 08:51:32 +02:00
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
@ -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(),
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user