Temporarily disable setting the Chat cached object
This commit is contained in:
parent
b510ccb865
commit
63c02cf31e
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ const updateChat = (payload: ChatPayload) => {
|
|||
const currentChats = flattenPages(queryClient.getQueryData<InfiniteData<PaginatedResult<unknown>>>(ChatKeys.chatSearch()));
|
||||
|
||||
// Update the specific Chat query data.
|
||||
queryClient.setQueryData<Chat>(ChatKeys.chat(chatId), payload as any);
|
||||
// queryClient.setQueryData<Chat>(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.
|
||||
|
|
Loading…
Reference in a new issue