mirror of https://github.com/vector-im/riot-web
Persist contentState when sending SlashCommand via MessageComposerInput
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
ebfdd7c718
commit
5764280588
|
@ -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…
Reference in New Issue