Always refetch and re-hydrate the Chat

revert-fa4bd20d
Chewbacca 2022-11-07 15:40:19 -05:00
rodzic 37bec50c08
commit 357e46248e
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -195,6 +195,7 @@ const useChat = (chatId?: string) => {
};
return useQuery<IChat | undefined>(ChatKeys.chat(chatId), getChat, {
cacheTime: 0,
enabled: !!chatId,
});
};