Fix some duplicates in eaches
This commit is contained in:
parent
986973a605
commit
f69b575381
2 changed files with 4 additions and 4 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {onMount} from "svelte"
|
import {onMount} from "svelte"
|
||||||
import {page} from "$app/stores"
|
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 type {TrustedEvent} from "@welshman/util"
|
||||||
import {pubkey, loadMessagingRelayList} from "@welshman/app"
|
import {pubkey, loadMessagingRelayList} from "@welshman/app"
|
||||||
import {fade} from "@lib/transition"
|
import {fade} from "@lib/transition"
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
const {...props}: Props = $props()
|
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 active = $derived($page.params.chat === props.id)
|
||||||
const path = makeChatPath(props.pubkeys)
|
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)
|
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
|
// Space/room memberships
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue