diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx
index 5cb9811..de7c38b 100644
--- a/frontend/src/App.tsx
+++ b/frontend/src/App.tsx
@@ -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(
diff --git a/frontend/src/components/ChatHeader.tsx b/frontend/src/components/ChatHeader.tsx
index c26ce87..70bcde5 100644
--- a/frontend/src/components/ChatHeader.tsx
+++ b/frontend/src/components/ChatHeader.tsx
@@ -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) ? (
★
) : (
☆