Browse Source

bugfix

imwald
Silberengel 5 months ago
parent
commit
6580ad4a6e
  1. 1
      src/components/NotificationList/NotificationItem/PublicMessageNotification.tsx
  2. 3
      src/services/client.service.ts

1
src/components/NotificationList/NotificationItem/PublicMessageNotification.tsx

@ -1,4 +1,3 @@
import { ExtendedKind } from '@/constants'
import { useNostr } from '@/providers/NostrProvider' import { useNostr } from '@/providers/NostrProvider'
import { MessageCircle } from 'lucide-react' import { MessageCircle } from 'lucide-react'
import { Event } from 'nostr-tools' import { Event } from 'nostr-tools'

3
src/services/client.service.ts

@ -113,8 +113,7 @@ class ClientService extends EventTarget {
}) })
if (mentions.length > 0) { if (mentions.length > 0) {
const relayLists = await this.fetchRelayLists(mentions) const relayLists = await this.fetchRelayLists(mentions)
relayLists.forEach((relayList, index) => { relayLists.forEach((relayList) => {
const mentionPubkey = mentions[index]
_additionalRelayUrls.push(...relayList.read.slice(0, 4)) _additionalRelayUrls.push(...relayList.read.slice(0, 4))
}) })
} }

Loading…
Cancel
Save