fix: Change cachedUserRelays from let to const

The variable is never reassigned, so it should be const instead of let.
This commit is contained in:
Alejandro Gómez
2026-01-16 17:24:04 +01:00
parent 19cf50027d
commit 807c03acb9

View File

@@ -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;