[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:
@@ -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]})
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user