From d5cc9b3183603e291786935832f7c50f6f3630f2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 25 Jun 2018 15:19:09 +0300 Subject: send pm --- vnext/src/components/MessageInput.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vnext/src/components/MessageInput.js') 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: '', -- cgit v1.2.3