mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-22 19:01:26 +00:00
Adding live comment count.
This commit is contained in:
parent
93f30fa915
commit
aeff5d2190
1 changed files with 1 additions and 0 deletions
|
@ -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