From 2f00cda6cc5ffb1f55c2328a90394066b2af33fd Mon Sep 17 00:00:00 2001 From: gabriellsh Date: Wed, 11 Oct 2023 12:34:35 -0300 Subject: [PATCH] remove check --- .../contextualBar/Threads/hooks/useThreadMainMessageQuery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/meteor/client/views/room/contextualBar/Threads/hooks/useThreadMainMessageQuery.ts b/apps/meteor/client/views/room/contextualBar/Threads/hooks/useThreadMainMessageQuery.ts index 6c86c038cb17..f191ce2776b9 100644 --- a/apps/meteor/client/views/room/contextualBar/Threads/hooks/useThreadMainMessageQuery.ts +++ b/apps/meteor/client/views/room/contextualBar/Threads/hooks/useThreadMainMessageQuery.ts @@ -89,7 +89,7 @@ export const useThreadMainMessageQuery = ( return useQuery(['rooms', room._id, 'threads', tmid, 'main-message'] as const, async ({ queryKey }) => { const mainMessage = await getMessage(tmid); - if (!mainMessage || !isThreadMainMessage(mainMessage)) { + if (!mainMessage) { throw new Error('Invalid main message'); }