BanFromCommunityResponse,
BanPersonResponse,
BlockPersonResponse,
+ CommentReportResponse,
CommentResponse,
CommunityResponse,
GetCommunityResponse,
GetSiteResponse,
ListingType,
MarkCommentAsRead,
+ PostReportResponse,
PostResponse,
PostView,
Search,
auth: authField(),
};
WebSocketService.Instance.send(wsClient.markCommentAsRead(form));
- UserService.Instance.unreadCountSub.next(
- UserService.Instance.unreadCountSub.value - 1
+ UserService.Instance.unreadInboxCountSub.next(
+ UserService.Instance.unreadInboxCountSub.value - 1
);
}
}
} else if (op == UserOperation.BlockPerson) {
let data = wsJsonToRes<BlockPersonResponse>(msg).data;
updatePersonBlock(data);
+ } else if (op == UserOperation.CreatePostReport) {
+ let data = wsJsonToRes<PostReportResponse>(msg).data;
+ if (data) {
+ toast(i18n.t("report_created"));
+ }
+ } else if (op == UserOperation.CreateCommentReport) {
+ let data = wsJsonToRes<CommentReportResponse>(msg).data;
+ if (data) {
+ toast(i18n.t("report_created"));
+ }
}
}
}