aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Thread.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-30 23:31:03 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit61523ca4d0eb3a718e9b029bd3e121f3b539b3b1 (patch)
treeedeb7b90c62ae4d36233fb8e6cc7f1400f0efd1d /vnext/src/components/Thread.js
parentfd7dd62c2f08ec993ac2c30f537a53d8e37cff24 (diff)
WebSockets
Diffstat (limited to 'vnext/src/components/Thread.js')
-rw-r--r--vnext/src/components/Thread.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js
index 63359ce0..0ec39d11 100644
--- a/vnext/src/components/Thread.js
+++ b/vnext/src/components/Thread.js
@@ -56,6 +56,13 @@ export default class Thread extends React.Component {
active: msg.rid || 0
})
}
+ onReply = (msg) => {
+ if (msg.mid == this.state.msg.mid) {
+ this.setState({
+ replies: [...this.state.replies, msg]
+ })
+ }
+ }
postComment = (template) => {
const { mid, rid, body, attach } = template;
comment(mid, rid, body, attach).then(res => {