From 63c02cf31e1725989853416eaf7ffd4fd58007eb Mon Sep 17 00:00:00 2001 From: Chewbacca Date: Fri, 4 Nov 2022 07:36:10 -0400 Subject: [PATCH] Temporarily disable setting the Chat cached object --- app/soapbox/actions/streaming.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/actions/streaming.ts b/app/soapbox/actions/streaming.ts index aa670e1be..1d0b5154b 100644 --- a/app/soapbox/actions/streaming.ts +++ b/app/soapbox/actions/streaming.ts @@ -61,7 +61,7 @@ const updateChat = (payload: ChatPayload) => { const currentChats = flattenPages(queryClient.getQueryData>>(ChatKeys.chatSearch())); // Update the specific Chat query data. - queryClient.setQueryData(ChatKeys.chat(chatId), payload as any); + // queryClient.setQueryData(ChatKeys.chat(chatId), payload as any); if (currentChats?.find((chat: any) => chat.id === chatId)) { // If the chat exists in the client, let's update it.