Omit type from constraint in profile queries where appropriate
This commit is contained in:
@@ -220,7 +220,7 @@ export function useProfileUpdateMutation() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function useProfileFollowMutationQueue(
|
export function useProfileFollowMutationQueue(
|
||||||
profile: Shadow<AppBskyActorDefs.ProfileViewDetailed>,
|
profile: Shadow<Omit<AppBskyActorDefs.ProfileViewDetailed, '$type'>>,
|
||||||
logContext: LogEvents['profile:follow']['logContext'] &
|
logContext: LogEvents['profile:follow']['logContext'] &
|
||||||
LogEvents['profile:follow']['logContext'],
|
LogEvents['profile:follow']['logContext'],
|
||||||
) {
|
) {
|
||||||
@@ -294,7 +294,7 @@ export function useProfileFollowMutationQueue(
|
|||||||
|
|
||||||
function useProfileFollowMutation(
|
function useProfileFollowMutation(
|
||||||
logContext: LogEvents['profile:follow']['logContext'],
|
logContext: LogEvents['profile:follow']['logContext'],
|
||||||
profile: Shadow<AppBskyActorDefs.ProfileViewDetailed>,
|
profile: Shadow<Omit<AppBskyActorDefs.ProfileViewDetailed, '$type'>>,
|
||||||
) {
|
) {
|
||||||
const {currentAccount} = useSession()
|
const {currentAccount} = useSession()
|
||||||
const agent = useAgent()
|
const agent = useAgent()
|
||||||
@@ -334,7 +334,7 @@ function useProfileUnfollowMutation(
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function useProfileMuteMutationQueue(
|
export function useProfileMuteMutationQueue(
|
||||||
profile: Shadow<AppBskyActorDefs.ProfileViewDetailed>,
|
profile: Shadow<Omit<AppBskyActorDefs.ProfileViewDetailed, '$type'>>,
|
||||||
) {
|
) {
|
||||||
const queryClient = useQueryClient()
|
const queryClient = useQueryClient()
|
||||||
const did = profile.did
|
const did = profile.did
|
||||||
@@ -409,7 +409,7 @@ function useProfileUnmuteMutation() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function useProfileBlockMutationQueue(
|
export function useProfileBlockMutationQueue(
|
||||||
profile: Shadow<AppBskyActorDefs.ProfileViewBasic>,
|
profile: Shadow<Omit<AppBskyActorDefs.ProfileViewBasic, '$type'>>,
|
||||||
) {
|
) {
|
||||||
const queryClient = useQueryClient()
|
const queryClient = useQueryClient()
|
||||||
const did = profile.did
|
const did = profile.did
|
||||||
|
|||||||
Reference in New Issue
Block a user