From 91e9756bf04ff20a32a187b373f51876f9dbcbe8 Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 8 Aug 2025 22:45:42 +0200 Subject: [PATCH] fix: build errors --- src/components/nostr/ChatComponent.vue | 2 -- src/composables/useNostrChat.ts | 1 - 2 files changed, 3 deletions(-) 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 = {