From 9e8cfd76c849a236d3e1b5f8ae9b05aa9364ef99 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 2 Jun 2018 13:40:28 +0900 Subject: [PATCH] wip --- src/client/app/common/scripts/streaming/home.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/app/common/scripts/streaming/home.ts b/src/client/app/common/scripts/streaming/home.ts index 50bbb56896..c5189ddc7a 100644 --- a/src/client/app/common/scripts/streaming/home.ts +++ b/src/client/app/common/scripts/streaming/home.ts @@ -28,6 +28,12 @@ export class HomeStream extends Stream { os.store.dispatch('mergeMe', i); }); + this.on('reciveFollowRequest', () => { + os.store.dispatch('mergeMe', { + pendingReceivedFollowRequestsCount: (os.store.state.i.pendingReceivedFollowRequestsCount || 0) + 1 + }); + }); + this.on('read_all_notifications', () => { os.store.dispatch('mergeMe', { hasUnreadNotification: false