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 7842d53d4..0d5d5e5bd 100644 --- a/src/state/queries/profile.ts +++ b/src/state/queries/profile.ts @@ -8,6 +8,7 @@ import { AppBskyEmbedRecordWithMedia, AppBskyFeedDefs, AtUri, + BskyAgent, } from '@atproto/api' import { QueryClient, @@ -154,6 +155,7 @@ export function useProfileUpdateMutation() { return existing }) await whenAppViewReady( + getAgent, profile.did, checkCommitted || (res => { @@ -516,6 +518,7 @@ export function precacheThreadPostProfiles( } async function whenAppViewReady( + getAgent: () => BskyAgent, actor: string, fn: (res: AppBskyActorGetProfile.Response) => boolean, ) { |