Slight optimization

This commit is contained in:
Jon Staab
2025-11-13 14:40:02 -08:00
parent 2880044e0e
commit 25e868118d
+3 -3
View File
@@ -250,15 +250,15 @@ export const getUrlsForEvent = derived([trackerStore, thunks], ([$tracker, $thun
}) })
return (id: string) => { return (id: string) => {
const urls = Array.from($tracker.getRelays(id)) const urls = $tracker.getRelays(id)
for (const thunk of getThunksByEventId().get(id) || []) { for (const thunk of getThunksByEventId().get(id) || []) {
for (const url of thunk.options.relays) { for (const url of thunk.options.relays) {
urls.push(url) urls.add(url)
} }
} }
return uniq(urls) return Array.from(urls)
} }
}) })