From 807c03acb9e4a2ba4535633fe47645bc01014837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20G=C3=B3mez?= Date: Fri, 16 Jan 2026 17:24:04 +0100 Subject: [PATCH] fix: Change cachedUserRelays from let to const The variable is never reassigned, so it should be const instead of let. --- src/lib/chat/adapters/nip-17-adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/chat/adapters/nip-17-adapter.ts b/src/lib/chat/adapters/nip-17-adapter.ts index ce3853c..3a23ca9 100644 --- a/src/lib/chat/adapters/nip-17-adapter.ts +++ b/src/lib/chat/adapters/nip-17-adapter.ts @@ -457,7 +457,7 @@ export class Nip17Adapter extends ChatProtocolAdapter { // Fetch user's own inbox relays (critical for both sending and receiving) // Try cached value first for performance, but fetch if empty to ensure reliability - let cachedUserRelays = giftWrapService.inboxRelays$.value; + const cachedUserRelays = giftWrapService.inboxRelays$.value; if (cachedUserRelays.length > 0) { // Use cached value if available participantInboxRelays[activePubkey] = cachedUserRelays;