Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Commit

Permalink
Fix notification subscriptions (#2167)
Browse files Browse the repository at this point in the history
  • Loading branch information
raymondjacobson authored Oct 26, 2022
1 parent 089b283 commit edd5408
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/web/src/common/store/social/users/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,11 @@ export function* followUser(
| null) ?? false
if (shouldAutoSubscribe) {
yield* put(
setNotificationSubscription(action.userId, /* isSubscribed */ true)
setNotificationSubscription(
action.userId,
/* isSubscribed */ true,
/* update */ true
)
)
}
}
Expand Down Expand Up @@ -196,7 +200,11 @@ export function* unfollowUser(

yield* call(confirmUnfollowUser, action.userId, accountId)
yield* put(
setNotificationSubscription(action.userId, /* isSubscribed */ false)
setNotificationSubscription(
action.userId,
/* isSubscribed */ false,
/* update */ true
)
)
}

Expand Down

0 comments on commit edd5408

Please sign in to comment.