diff options
author | 2018-06-28 13:28:02 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:53 +0300 | |
commit | 3c61705c062234adc954c8a42e3ea53ff1007bb6 (patch) | |
tree | 62660e83321b13963cdeb45e46cfa0a1203552a4 /vnext/src/components/Chat.js | |
parent | c3cd88c90cf3866324af4b12ab573a0392681c74 (diff) |
MessageInput in Post
Diffstat (limited to 'vnext/src/components/Chat.js')
-rw-r--r-- | vnext/src/components/Chat.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/vnext/src/components/Chat.js b/vnext/src/components/Chat.js index c7a5c3ff..fa187f42 100644 --- a/vnext/src/components/Chat.js +++ b/vnext/src/components/Chat.js @@ -35,9 +35,9 @@ export default class Chat extends React.Component { onSend = (template) => { pm(template.to.uname, template.body) - .then(res => { - this.loadChat(this.props.match.params.user); - }).catch(console.log) + .then(res => { + this.loadChat(this.props.match.params.user); + }).catch(console.log) } render() { @@ -56,7 +56,9 @@ export default class Chat extends React.Component { ) } </ul> - <MessageInput data={{ mid: 0, timestamp: "0", to: { uname: uname } }} onSend={this.onSend} /> + <MessageInput data={{ mid: 0, timestamp: "0", to: { uname: uname } }} onSend={this.onSend}> + Reply... + </MessageInput> </div> ) : ( <div className="chatroom no-selection"><p>No chat selected</p></div> |