fix: 🐛

This commit is contained in:
codytseng
2025-08-17 18:35:01 +08:00
parent 4e40662f22
commit 5647eeb1a8

View File

@@ -29,6 +29,7 @@ import { Event, kinds } from 'nostr-tools'
import { useEffect, useState } from 'react' import { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next' import { useTranslation } from 'react-i18next'
import RelaySetCard from '../RelaySetCard' import RelaySetCard from '../RelaySetCard'
import { buildATag } from '@/lib/draft-event'
export default function PullRelaySetsButton() { export default function PullRelaySetsButton() {
const { t } = useTranslation() const { t } = useTranslation()
@@ -120,7 +121,7 @@ function RemoteRelaySets({ close }: { close?: () => void }) {
if (!title) { if (!title) {
title = relayUrls.length === 1 ? simplifyUrl(relayUrls[0]) : id title = relayUrls.length === 1 ? simplifyUrl(relayUrls[0]) : id
} }
relaySets.push({ id, name: title, relayUrls }) relaySets.push({ id, name: title, relayUrls, aTag: buildATag(evt) })
relaySetEventMap.set(id, evt) relaySetEventMap.set(id, evt)
}) })