Slight optimization
This commit is contained in:
parent
2880044e0e
commit
25e868118d
1 changed files with 3 additions and 3 deletions
|
|
@ -250,15 +250,15 @@ export const getUrlsForEvent = derived([trackerStore, thunks], ([$tracker, $thun
|
|||
})
|
||||
|
||||
return (id: string) => {
|
||||
const urls = Array.from($tracker.getRelays(id))
|
||||
const urls = $tracker.getRelays(id)
|
||||
|
||||
for (const thunk of getThunksByEventId().get(id) || []) {
|
||||
for (const url of thunk.options.relays) {
|
||||
urls.push(url)
|
||||
urls.add(url)
|
||||
}
|
||||
}
|
||||
|
||||
return uniq(urls)
|
||||
return Array.from(urls)
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue