|
|
|
@ -24,7 +24,10 @@ export default function SendOnlyToSwitch({ |
|
|
|
const [urls, setUrls] = useState<string[]>([]) |
|
|
|
const [urls, setUrls] = useState<string[]>([]) |
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => { |
|
|
|
useEffect(() => { |
|
|
|
if (!parentEvent) return |
|
|
|
if (!parentEvent) { |
|
|
|
|
|
|
|
setUrls(relayUrls) |
|
|
|
|
|
|
|
return |
|
|
|
|
|
|
|
} |
|
|
|
const isProtected = isProtectedEvent(parentEvent) |
|
|
|
const isProtected = isProtectedEvent(parentEvent) |
|
|
|
const seenOn = client.getSeenEventRelayUrls(parentEvent.id) |
|
|
|
const seenOn = client.getSeenEventRelayUrls(parentEvent.id) |
|
|
|
if (isProtected && seenOn.length) { |
|
|
|
if (isProtected && seenOn.length) { |
|
|
|
|