Lint fixes

This commit is contained in:
Jack Kingsman
2026-03-30 21:44:26 -07:00
parent 43abcd07b2
commit 4326f57977

View File

@@ -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, { type: 'channel' | 'contact' }> {
): conversation is UnreadTrackedConversation {
return conversation?.type === 'channel' || conversation?.type === 'contact';
}