reinstate list-conversations invalidation on block
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -42,6 +42,7 @@ import {
|
|||||||
ProgressGuideAction,
|
ProgressGuideAction,
|
||||||
useProgressGuideControls,
|
useProgressGuideControls,
|
||||||
} from '../shell/progress-guide'
|
} 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_BLOCKED} from './my-blocked-accounts'
|
||||||
import {RQKEY as RQKEY_MY_MUTED} from './my-muted-accounts'
|
import {RQKEY as RQKEY_MY_MUTED} from './my-muted-accounts'
|
||||||
|
|
||||||
@@ -527,6 +528,11 @@ export function useProfileBlockMutationQueue(
|
|||||||
updateProfileShadow(queryClient, did, {
|
updateProfileShadow(queryClient, did, {
|
||||||
blockingUri: finalBlockingUri,
|
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