summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/app/common/scripts/streaming/home.ts6
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