Fix some duplicates in eaches

This commit is contained in:
Jon Staab
2026-01-06 10:51:37 -08:00
parent 986973a605
commit f69b575381
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
<script lang="ts">
import {onMount} from "svelte"
import {page} from "$app/stores"
import {remove, formatTimestamp} from "@welshman/lib"
import {remove, uniq, formatTimestamp} from "@welshman/lib"
import type {TrustedEvent} from "@welshman/util"
import {pubkey, loadMessagingRelayList} from "@welshman/app"
import {fade} from "@lib/transition"
@@ -21,7 +21,7 @@
const {...props}: Props = $props()
const others = remove($pubkey!, props.pubkeys)
const others = uniq(remove($pubkey!, props.pubkeys))
const active = $derived($page.params.chat === props.id)
const path = makeChatPath(props.pubkeys)
+2 -2
View File
@@ -631,7 +631,7 @@ export const getSpaceRoomsFromGroupList = (url: string, groupList: List | undefi
}
}
return sortBy(roomComparator(url), rooms)
return sortBy(roomComparator(url), uniq(rooms))
}
export const userGroupList = makeUserData(groupListsByPubkey, loadGroupList)
@@ -663,7 +663,7 @@ export const deriveOtherRooms = (url: string) =>
}
}
return sortBy(roomComparator(url), rooms)
return sortBy(roomComparator(url), uniq(rooms))
})
// Space/room memberships