mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-11 07:56:50 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user