From ac280782b27b07e5282af03e329253503100ef99 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Sat, 7 Mar 2020 18:31:13 -0500 Subject: Iframely and pictshare backend mostly done. --- ui/src/components/inbox.tsx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ui/src/components/inbox.tsx') diff --git a/ui/src/components/inbox.tsx b/ui/src/components/inbox.tsx index 0d07dca5..8ced73f0 100644 --- a/ui/src/components/inbox.tsx +++ b/ui/src/components/inbox.tsx @@ -28,6 +28,7 @@ import { saveCommentRes, createCommentLikeRes, commentsToFlatNodes, + setupTippy, } from '../utils'; import { CommentNodes } from './comment-nodes'; import { PrivateMessage } from './private-message'; @@ -333,18 +334,21 @@ export class Inbox extends Component { this.sendUnreadCount(); window.scrollTo(0, 0); this.setState(this.state); + setupTippy(); } else if (res.op == UserOperation.GetUserMentions) { let data = res.data as GetUserMentionsResponse; this.state.mentions = data.mentions; this.sendUnreadCount(); window.scrollTo(0, 0); this.setState(this.state); + setupTippy(); } else if (res.op == UserOperation.GetPrivateMessages) { let data = res.data as PrivateMessagesResponse; this.state.messages = data.messages; this.sendUnreadCount(); window.scrollTo(0, 0); this.setState(this.state); + setupTippy(); } else if (res.op == UserOperation.EditPrivateMessage) { let data = res.data as PrivateMessageResponse; let found: PrivateMessageI = this.state.messages.find( @@ -387,6 +391,7 @@ export class Inbox extends Component { } this.sendUnreadCount(); this.setState(this.state); + setupTippy(); } else if (res.op == UserOperation.EditUserMention) { let data = res.data as UserMentionResponse; @@ -430,6 +435,7 @@ export class Inbox extends Component { let data = res.data as CommentResponse; saveCommentRes(data, this.state.replies); this.setState(this.state); + setupTippy(); } else if (res.op == UserOperation.CreateCommentLike) { let data = res.data as CommentResponse; createCommentLikeRes(data, this.state.replies); -- cgit v1.2.3