From 6163cefa6ae12632c5b81f6f4ca51e439843eebf Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 2 Sep 2019 16:29:25 +0200 Subject: [PATCH] set dirty flag when programatically inserting text like with newlines --- src/components/views/rooms/BasicMessageComposer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/views/rooms/BasicMessageComposer.js b/src/components/views/rooms/BasicMessageComposer.js index 95855e8c81..c5661e561c 100644 --- a/src/components/views/rooms/BasicMessageComposer.js +++ b/src/components/views/rooms/BasicMessageComposer.js @@ -175,6 +175,7 @@ export default class BasicMessageEditor extends React.Component { const newText = text.substr(0, caret.offset) + textToInsert + text.substr(caret.offset); caret.offset += textToInsert.length; this.props.model.update(newText, inputType, caret); + this._modifiedFlag = true; } // this is used later to see if we need to recalculate the caret