import { Component, linkEvent } from "inferno";
import {
BlockPersonResponse,
+ CommentReportResponse,
CommentResponse,
CommentView,
GetPersonMentions,
GetRepliesResponse,
PersonMentionResponse,
PersonMentionView,
+ PostReportResponse,
PrivateMessageResponse,
PrivateMessagesResponse,
PrivateMessageView,
} 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"));
+ }
}
}
sendUnreadCount() {
- UserService.Instance.unreadCountSub.next(this.unreadCount());
+ UserService.Instance.unreadInboxCountSub.next(this.unreadCount());
}
unreadCount(): number {