Always refetch and re-hydrate the Chat

This commit is contained in:
Chewbacca 2022-11-07 15:40:19 -05:00
parent 37bec50c08
commit 357e46248e

View file

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