From 4326f57977643a6605627238cc2916e4d04b1327 Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Mon, 30 Mar 2026 21:44:26 -0700 Subject: [PATCH] Lint fixes --- frontend/src/hooks/useUnreadCounts.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/hooks/useUnreadCounts.ts b/frontend/src/hooks/useUnreadCounts.ts index 0180901..be438c5 100644 --- a/frontend/src/hooks/useUnreadCounts.ts +++ b/frontend/src/hooks/useUnreadCounts.ts @@ -10,9 +10,11 @@ import { import type { Channel, Contact, Conversation, Message, UnreadCounts } from '../types'; import { takePrefetchOrFetch } from '../prefetch'; +type UnreadTrackedConversation = Conversation & { type: 'channel' | 'contact' }; + function isUnreadTrackedConversation( conversation: Conversation | null -): conversation is Extract { +): conversation is UnreadTrackedConversation { return conversation?.type === 'channel' || conversation?.type === 'contact'; }