diff --git a/src/client/app/common/scripts/streaming/home.ts b/src/client/app/common/scripts/streaming/home.ts index 50bbb5689..c5189ddc7 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