mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-24 23:31:30 +00:00
Adding live comment count.
This commit is contained in:
parent
93f30fa915
commit
aeff5d2190
|
@ -483,6 +483,7 @@ export class Post extends Component<any, PostState> {
|
|||
// Necessary since it might be a user reply, which has the recipients, to avoid double
|
||||
if (data.recipient_ids.length == 0) {
|
||||
this.state.postRes.comments.unshift(data.comment_view);
|
||||
this.state.postRes.post_view.counts.comments++;
|
||||
this.setState(this.state);
|
||||
}
|
||||
} else if (
|
||||
|
|
Loading…
Reference in a new issue