AddModToCommunityResponse,
BanFromCommunityResponse,
BanPersonResponse,
+ BlockPersonResponse,
CommentResponse,
CommunityResponse,
GetCommunityResponse,
setOptionalAuth,
setupTippy,
toast,
+ updatePersonBlock,
wsClient,
wsJsonToRes,
wsSubscribe,
: this.state.postRes.post_view.creator.id;
if (
- UserService.Instance.localUserView &&
- UserService.Instance.localUserView.person.id == parent_person_id
+ UserService.Instance.myUserInfo &&
+ UserService.Instance.myUserInfo.local_user_view.person.id ==
+ parent_person_id
) {
let form: MarkCommentAsRead = {
comment_id: found.comment.id,
this.state.postRes.post_view.community = data.community_view.community;
this.state.postRes.moderators = data.moderators;
this.setState(this.state);
+ } else if (op == UserOperation.BlockPerson) {
+ let data = wsJsonToRes<BlockPersonResponse>(msg).data;
+ updatePersonBlock(data);
}
}
}