From 5764280588de9071f5a136e5d35e306ed5b71d43 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 29 Jan 2018 09:08:11 +0000 Subject: [PATCH] Persist contentState when sending SlashCommand via MessageComposerInput Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/views/rooms/MessageComposerInput.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/rooms/MessageComposerInput.js b/src/components/views/rooms/MessageComposerInput.js index 932ccf3446..c142d97b28 100644 --- a/src/components/views/rooms/MessageComposerInput.js +++ b/src/components/views/rooms/MessageComposerInput.js @@ -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(), });