From 6399d95f99e44f9fd5258c13df43d7d9eddbd5e1 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 20 Jan 2026 12:34:49 +0000 Subject: [PATCH] fix: improve NIP-17 relay connection tracking and UI Changes: - Remove incorrect "NIP-10050" text from inbox relays dropdown header - Ensure inbox relays are monitored by relay state manager - Add ensureRelayMonitored() calls in gift-wrap service for better connection tracking - This ensures active user's inbox relays show correct connection status Note: The dropdown shows ALL participants' inbox relays, but only the active user's inbox relays are connected via gift-wrap sync. Other participants' relays correctly show as "disconnected" since we don't connect to them. --- src/components/ChatViewer.tsx | 18 +++++++++--------- src/components/InboxViewer.tsx | 12 ++++++++++++ src/components/chat/InboxRelaysDropdown.tsx | 2 +- src/services/gift-wrap.ts | 20 +++++++++++++++----- 4 files changed, 37 insertions(+), 15 deletions(-) diff --git a/src/components/ChatViewer.tsx b/src/components/ChatViewer.tsx index 387cfe9..ef3b89b 100644 --- a/src/components/ChatViewer.tsx +++ b/src/components/ChatViewer.tsx @@ -866,6 +866,15 @@ export function ChatViewer({
{headerPrefix} + {/* Show lock icon for encrypted conversations */} + {protocol === "nip-17" && ( +
+ +
+ )} @@ -1015,15 +1024,6 @@ export function ChatViewer({ ) : ( )} - {/* Show lock icon for encrypted conversations */} - {protocol === "nip-17" && ( -
- -
- )}