From 90ef85f4e8bf323fc346396dc93bb24ae81c6888 Mon Sep 17 00:00:00 2001 From: padreug Date: Fri, 5 Sep 2025 00:37:06 +0200 Subject: [PATCH] Refactor ChatComponent and ChatPage for improved readability and maintainability - Update Badge components in ChatComponent.vue to use new variant props for better styling consistency. - Simplify ChatPage.vue by removing debug information and authentication checks, directly rendering ChatComponent for a cleaner layout. --- src/modules/chat/components/ChatComponent.vue | 10 ++-- src/modules/chat/views/ChatPage.vue | 52 +------------------ 2 files changed, 7 insertions(+), 55 deletions(-) diff --git a/src/modules/chat/components/ChatComponent.vue b/src/modules/chat/components/ChatComponent.vue index 10aa158..189ddd3 100644 --- a/src/modules/chat/components/ChatComponent.vue +++ b/src/modules/chat/components/ChatComponent.vue @@ -13,7 +13,7 @@ Disconnected - + {{ totalUnreadCount }} unread @@ -91,7 +91,7 @@
- + {{ getUnreadCount(peer.pubkey) > 99 ? '99+' : getUnreadCount(peer.pubkey) }}
@@ -133,7 +133,7 @@ Disconnected
- + {{ getUnreadCount(selectedPeer.pubkey) }} unread @@ -198,7 +198,7 @@ Disconnected - + {{ totalUnreadCount }} unread @@ -278,7 +278,7 @@
- + {{ getUnreadCount(peer.pubkey) > 99 ? '99+' : getUnreadCount(peer.pubkey) }}
diff --git a/src/modules/chat/views/ChatPage.vue b/src/modules/chat/views/ChatPage.vue index bfee968..210a5c1 100644 --- a/src/modules/chat/views/ChatPage.vue +++ b/src/modules/chat/views/ChatPage.vue @@ -1,57 +1,9 @@ \ No newline at end of file