diff options
author | Dessalines <tyhou13@gmx.com> | 2020-02-11 10:14:09 -0500 |
---|---|---|
committer | Dessalines <tyhou13@gmx.com> | 2020-02-11 10:14:09 -0500 |
commit | 774518e4fe336ac60c6e8ccdbc9a98e0cb8b9310 (patch) | |
tree | e210171524334915a06e6baa03ac2f569b42efda /ui/src/components/post.tsx | |
parent | f1392dc9a7beebcb86d7109a2b408344c2abcecc (diff) |
Fixing unread indicator on link click. Fixes #527
Diffstat (limited to 'ui/src/components/post.tsx')
-rw-r--r-- | ui/src/components/post.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/components/post.tsx b/ui/src/components/post.tsx index b5b1fce3..d8f662cf 100644 --- a/ui/src/components/post.tsx +++ b/ui/src/components/post.tsx @@ -156,6 +156,10 @@ export class Post extends Component<any, PostState> { auth: null, }; WebSocketService.Instance.editComment(form); + UserService.Instance.user.unreadCount--; + UserService.Instance.sub.next({ + user: UserService.Instance.user, + }); } } |