diff options
Diffstat (limited to 'src/state/queries/profile.ts')
-rw-r--r-- | src/state/queries/profile.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state/queries/profile.ts b/src/state/queries/profile.ts index af00faf27..d9a2c6bbb 100644 --- a/src/state/queries/profile.ts +++ b/src/state/queries/profile.ts @@ -23,6 +23,7 @@ import {logEvent, LogEvents, toClout} from '#/lib/statsig/statsig' import {Shadow} from '#/state/cache/types' import {STALE} from '#/state/queries' import {resetProfilePostsQueries} from '#/state/queries/post-feed' +import * as userActionHistory from '#/state/userActionHistory' import {updateProfileShadow} from '../cache/profile-shadow' import {useAgent, useSession} from '../session' import { @@ -233,6 +234,7 @@ export function useProfileFollowMutationQueue( const {uri} = await followMutation.mutateAsync({ did, }) + userActionHistory.follow([did]) return uri } else { if (prevFollowingUri) { @@ -240,6 +242,7 @@ export function useProfileFollowMutationQueue( did, followUri: prevFollowingUri, }) + userActionHistory.unfollow([did]) } return undefined } |