diff --git a/app/soapbox/queries/chats.ts b/app/soapbox/queries/chats.ts index 0423b29b6..945cb76c6 100644 --- a/app/soapbox/queries/chats.ts +++ b/app/soapbox/queries/chats.ts @@ -268,6 +268,7 @@ const useChatActions = (chatId: string) => { const acceptChat = useMutation(() => api.post(`/api/v1/pleroma/chats/${chatId}/accept`), { onSuccess(response) { changeScreen(ChatWidgetScreens.CHAT, response.data.id); + queryClient.invalidateQueries(ChatKeys.chat(chatId)); queryClient.invalidateQueries(ChatKeys.chatMessages(chatId)); queryClient.invalidateQueries(ChatKeys.chatSearch()); },