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'); }