aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Thread.js
diff options
context:
space:
mode:
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 => {