this.context.router.history.push('/');
return;
} else if (msg.reconnect) {
+ WebSocketService.Instance.communityJoin({
+ community_id: this.state.communityRes.community.id,
+ });
this.fetchData();
} else if (res.op == UserOperation.GetCommunity) {
let data = res.data as GetCommunityResponse;
toast(i18n.t(msg.error), 'danger');
return;
} else if (msg.reconnect) {
+ WebSocketService.Instance.communityJoin({ community_id: 0 });
this.fetchData();
} else if (res.op == UserOperation.GetFollowedCommunities) {
let data = res.data as GetFollowedCommunitiesResponse;
}
return;
} else if (msg.reconnect) {
+ WebSocketService.Instance.userJoin();
this.fetchUnreads();
} else if (res.op == UserOperation.GetReplies) {
let data = res.data as GetRepliesResponse;
toast(i18n.t(msg.error), 'danger');
return;
} else if (msg.reconnect) {
+ let postId = Number(this.props.match.params.id);
+ WebSocketService.Instance.postJoin({ post_id: postId });
WebSocketService.Instance.getPost({
- id: Number(this.props.match.params.id),
+ id: postId,
});
} else if (res.op == UserOperation.GetPost) {
let data = res.data as GetPostResponse;