diff options
author | 2018-06-28 15:27:15 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:53 +0300 | |
commit | e1644f8dc734b81b1faf3b3f4488c70e28ef1c21 (patch) | |
tree | 54bcaf47e6a030ef75a4749d49338229c1755f3e /vnext/src/components/MessageInput.js | |
parent | c8406a729b849c22b5e1fb707cdee45bfad7c402 (diff) |
accept text for Post and MessageInput
Diffstat (limited to 'vnext/src/components/MessageInput.js')
-rw-r--r-- | vnext/src/components/MessageInput.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/vnext/src/components/MessageInput.js b/vnext/src/components/MessageInput.js index 5ef654a8..5d603a4b 100644 --- a/vnext/src/components/MessageInput.js +++ b/vnext/src/components/MessageInput.js @@ -16,7 +16,7 @@ export default class MessageInput extends React.Component { mid: this.props.data.mid, rid: this.props.data.rid || 0, to: this.props.data.to || {}, - body: '', + body: this.props.text || '', attach: '' } } @@ -131,5 +131,6 @@ const textInputStyle = { MessageInput.propTypes = { data: MessageType.isRequired, onSend: PropTypes.func.isRequired, - rows: PropTypes.string + rows: PropTypes.string, + text: PropTypes.string };
\ No newline at end of file |