Revert "Instant Feed Update on Mute or Moderation Action" (#8482)

This commit is contained in:
Samuel Newman
2025-06-12 23:16:52 +03:00
committed by GitHub
parent 8a5a7db146
commit 18b4fcf8eb
2 changed files with 3 additions and 13 deletions
+1 -3
View File
@@ -499,10 +499,9 @@ function useProfileBlockMutation() {
{subject: did, createdAt: new Date().toISOString()},
)
},
onSuccess(data, {did}) {
onSuccess(_, {did}) {
queryClient.invalidateQueries({queryKey: RQKEY_MY_BLOCKED()})
resetProfilePostsQueries(queryClient, did, 1000)
updateProfileShadow(queryClient, did, {blockingUri: data.uri})
},
})
}
@@ -524,7 +523,6 @@ function useProfileUnblockMutation() {
},
onSuccess(_, {did}) {
resetProfilePostsQueries(queryClient, did, 1000)
updateProfileShadow(queryClient, did, {blockingUri: undefined})
},
})
}