[Chat] Sync convo agent with shadow cache (#10827)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-authored-by: DS Boyce <260543580+ds-boyce@users.noreply.github.com>
Co-authored-by: Samuel Newman <mozzius@protonmail.com>
This commit is contained in:
Eric Bailey
2026-06-10 10:16:58 -05:00
committed by GitHub
parent 17ff9af200
commit 8b4a5238be
12 changed files with 195 additions and 58 deletions
+4
View File
@@ -528,6 +528,10 @@ export function useProfileBlockMutationQueue(
updateProfileShadow(queryClient, did, {
blockingUri: finalBlockingUri,
})
// The shadow only reaches components that read profiles through shadow
// hooks. The convo list is also read raw (e.g. the unread badge's
// calculateCount, getMessageInfo), and blocks emit no chat log event,
// so without a refetch that data stays stale indefinitely.
void queryClient.invalidateQueries({queryKey: [RQKEY_LIST_CONVOS]})
},
})