diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-06-02 13:40:28 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-06-02 13:40:28 +0900 |
| commit | 9e8cfd76c849a236d3e1b5f8ae9b05aa9364ef99 (patch) | |
| tree | 7a13e4f9acacdd58c55a92c8850f79cabf4d474a /src | |
| parent | wip (diff) | |
| download | sharkey-9e8cfd76c849a236d3e1b5f8ae9b05aa9364ef99.tar.gz sharkey-9e8cfd76c849a236d3e1b5f8ae9b05aa9364ef99.tar.bz2 sharkey-9e8cfd76c849a236d3e1b5f8ae9b05aa9364ef99.zip | |
wip
Diffstat (limited to 'src')
| -rw-r--r-- | src/client/app/common/scripts/streaming/home.ts | 6 |
1 files changed, 6 insertions, 0 deletions
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 |