reinstate list-conversations invalidation on block

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-06-10 16:03:32 +03:00
parent 3fc5debf14
commit 810e098d82
+6
View File
@@ -42,6 +42,7 @@ import {
ProgressGuideAction,
useProgressGuideControls,
} from '../shell/progress-guide'
import {RQKEY_ROOT as RQKEY_LIST_CONVOS} from './messages/list-conversations'
import {RQKEY as RQKEY_MY_BLOCKED} from './my-blocked-accounts'
import {RQKEY as RQKEY_MY_MUTED} from './my-muted-accounts'
@@ -527,6 +528,11 @@ 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]})
},
})