AddModToCommunityResponse,
BanFromCommunityResponse,
BlockPersonResponse,
+ CommentReportResponse,
CommentResponse,
CommentView,
CommunityResponse,
GetPostsResponse,
GetSiteResponse,
ListingType,
+ PostReportResponse,
PostResponse,
PostView,
SortType,
} 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"));
+ }
}
}
}