Fix link_deps, normalize relays less aggressively

This commit is contained in:
Jon Staab
2026-06-03 11:08:08 -07:00
parent e3e13563d5
commit 1b8d6e50e2
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -88,7 +88,7 @@
<input bind:value={term} class="grow" type="text" placeholder="Search for relays..." />
</label>
<div class="column -m-6 mt-0 h-[50vh] gap-2 overflow-auto p-6 pt-2" bind:this={element}>
{#if customUrl && isShareableRelayUrl(customUrl) && !$relays.includes(normalizeRelayUrl(customUrl))}
{#if customUrl && isShareableRelayUrl(customUrl) && !$relays.includes(customUrl)}
<RelayItem url={term}>
<Button
class="btn btn-outline btn-sm flex items-center"
+1 -1
View File
@@ -755,7 +755,7 @@ export const getSpaceUrlsFromGroupList = (groupList: List | undefined) => {
}
}
return uniq(urls.map(normalizeRelayUrl))
return uniqBy(normalizeRelayUrl, urls)
}
export const getSpaceRoomsFromGroupList = (url: string, groupList: List | undefined) => {