forked from coracle/flotilla
Fix some duplicates in eaches
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user