diff --git a/packages/pl-fe/src/queries/accounts/use-relationship.ts b/packages/pl-fe/src/queries/accounts/use-relationship.ts index 403580700..cabb3c8e3 100644 --- a/packages/pl-fe/src/queries/accounts/use-relationship.ts +++ b/packages/pl-fe/src/queries/accounts/use-relationship.ts @@ -105,6 +105,10 @@ const useBlockAccountMutation = (accountId: string) => { ? suggestions.filter((suggestion) => suggestion.account_id !== accountId) : undefined); + queryClient.invalidateQueries({ + queryKey: ['accountsLists', 'blocked'], + }); + // Pass in entire statuses map so we can use it to filter stuff in different parts of the reducers return dispatch((dispatch, getState) => dispatch({ type: ACCOUNT_BLOCK_SUCCESS, @@ -151,6 +155,10 @@ const useMuteAccountMutation = (accountId: string) => { ? suggestions.filter((suggestion) => suggestion.account_id !== accountId) : undefined); + queryClient.invalidateQueries({ + queryKey: ['accountsLists', 'muted'], + }); + // Pass in entire statuses map so we can use it to filter stuff in different parts of the reducers return dispatch((dispatch, getState) => dispatch({ type: ACCOUNT_MUTE_SUCCESS,