Whoops, linting

This commit is contained in:
Jack Kingsman
2026-02-16 17:49:27 -08:00
parent 6a3a99fe9f
commit d4a7b37fa9
2 changed files with 23 additions and 15 deletions

View File

@@ -50,14 +50,7 @@ import { Sheet, SheetContent, SheetHeader, SheetTitle } from './components/ui/sh
import { Toaster, toast } from './components/ui/sonner';
import { getStateKey } from './utils/conversationState';
import { cn } from '@/lib/utils';
import type {
Contact,
Conversation,
HealthStatus,
Message,
MessagePath,
RawPacket,
} from './types';
import type { Contact, Conversation, HealthStatus, Message, MessagePath, RawPacket } from './types';
const MAX_RAW_PACKETS = 500;
@@ -320,7 +313,18 @@ export function App() {
messageCache.updateAck(messageId, ackCount, paths);
},
}),
[addMessageIfNew, trackNewMessage, incrementUnread, updateMessageAck, checkMention, prevHealthRef, setHealth, setConfig, activeConversationRef, setContacts]
[
addMessageIfNew,
trackNewMessage,
incrementUnread,
updateMessageAck,
checkMention,
prevHealthRef,
setHealth,
setConfig,
activeConversationRef,
setContacts,
]
);
// Connect to WebSocket
@@ -343,7 +347,15 @@ export function App() {
console.error(err);
setContactsLoaded(true);
});
}, [fetchConfig, fetchAppSettings, fetchUndecryptedCount, fetchAllContacts, setChannels, setContacts, setContactsLoaded]);
}, [
fetchConfig,
fetchAppSettings,
fetchUndecryptedCount,
fetchAllContacts,
setChannels,
setContacts,
setContactsLoaded,
]);
// Send message handler
const handleSendMessage = useCallback(

View File

@@ -129,11 +129,7 @@ export function ChatHeader({
: 'Add to favorites'
}
>
{isFavorite(
favorites,
conversation.type as 'channel' | 'contact',
conversation.id
) ? (
{isFavorite(favorites, conversation.type as 'channel' | 'contact', conversation.id) ? (
<span className="text-amber-400">&#9733;</span>
) : (
<span className="text-muted-foreground">&#9734;</span>