diff --git a/src/components/nostr/ChatComponent.vue b/src/components/nostr/ChatComponent.vue index 78b7bc6..63ca539 100644 --- a/src/components/nostr/ChatComponent.vue +++ b/src/components/nostr/ChatComponent.vue @@ -446,7 +446,6 @@ const goBackToPeers = () => { const { isConnected, messages, - isLoggedIn, connect, disconnect, subscribeToPeer, @@ -455,7 +454,6 @@ const { onMessageAdded, markMessagesAsRead, getUnreadCount, - getAllUnreadCounts, getTotalUnreadCount } = useNostrChat() diff --git a/src/composables/useNostrChat.ts b/src/composables/useNostrChat.ts index c8674e5..fc71849 100644 --- a/src/composables/useNostrChat.ts +++ b/src/composables/useNostrChat.ts @@ -111,7 +111,6 @@ export function useNostrChat() { // Mark messages as read for a peer const markMessagesAsRead = (peerPubkey: string): void => { const currentTimestamp = Math.floor(Date.now() / 1000) - const unreadData = getUnreadData(peerPubkey) // Update last read timestamp, reset unread count, and clear processed message IDs const updatedData: UnreadMessageData = {