diff options
author | Eric Bailey <git@esb.lol> | 2024-04-25 15:39:28 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-25 21:39:28 +0100 |
commit | a69e56799193ef9b1e5ea9c96bbf0bcc28158d3f (patch) | |
tree | 525825a1efc3db5c9d697fdcfb8f11ffd2aba878 /src/state/queries/profile.ts | |
parent | ec376960347a6255f1ec12c1758797ac30c073ff (diff) | |
download | voidsky-a69e56799193ef9b1e5ea9c96bbf0bcc28158d3f.tar.zst |
[Session] Drill into `getAgent` into `whenAppViewReady` (#3702)
* Drill into whenAppViewReady (cherry picked from commit e290e5be3df509bdd9d0e626a164996c9dee3636) * Drill getAgent instead --------- Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
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, ) { |