diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-06-12 23:16:52 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-12 13:16:52 -0700 |
commit | 18b4fcf8eb1ec4d27c1245726a4dbf50c534f651 (patch) | |
tree | aef07b6233b32b758d19c588c98817a82f8c6428 /src/state/queries | |
parent | 8a5a7db1466f20af90809a6fe7c07bb0e1e000ac (diff) | |
download | voidsky-18b4fcf8eb1ec4d27c1245726a4dbf50c534f651.tar.zst |
Revert "Instant Feed Update on Mute or Moderation Action" (#8482)
Diffstat (limited to 'src/state/queries')
-rw-r--r-- | src/state/queries/profile.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/state/queries/profile.ts b/src/state/queries/profile.ts index b0af57c4a..eb65fef7c 100644 --- a/src/state/queries/profile.ts +++ b/src/state/queries/profile.ts @@ -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}) }, }) } |