diff --git a/app/containers/MessageBox/index.js b/app/containers/MessageBox/index.js index 7ca8db2c182..39e29dbc7b6 100644 --- a/app/containers/MessageBox/index.js +++ b/app/containers/MessageBox/index.js @@ -487,20 +487,10 @@ class MessageBox extends Component { } setInput = (text) => { + this.text = text; if (this.component && this.component.setNativeProps) { - const props = { text }; - - if (isAndroid) { - const diff = text.length - this.text?.length; - const selection = this.component?.lastNativeSelection; - const start = selection?.start + diff >= 0 ? selection?.start + diff : text.length; - const end = selection?.end + diff >= 0 ? selection?.start + diff : text.length; - props.selection = { start, end }; - } - - this.component.setNativeProps(props); + this.component.setNativeProps({ text }); } - this.text = text; } setShowSend = (showSend) => {