aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/MessageInput.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/MessageInput.js')
-rw-r--r--vnext/src/components/MessageInput.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/vnext/src/components/MessageInput.js b/vnext/src/components/MessageInput.js
index e30962a8..21495dd7 100644
--- a/vnext/src/components/MessageInput.js
+++ b/vnext/src/components/MessageInput.js
@@ -15,6 +15,7 @@ export default class MessageInput extends React.Component {
isActive: false,
mid: this.props.data.mid,
rid: this.props.data.rid || 0,
+ to: this.props.data.to || {},
body: '',
attach: ''
}
@@ -33,7 +34,8 @@ export default class MessageInput extends React.Component {
mid: this.state.mid,
rid: this.state.rid,
body: this.state.body,
- attach: this.state.attach ? input.files[0] : ''
+ attach: this.state.attach ? input.files[0] : '',
+ to: this.state.to
})
this.setState({
body: '',