perf: throttle member list derivation and use deduped profile stores in SpaceMembers and RoomMembersAdd
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
<script lang="ts">
|
||||
import cx from "classnames"
|
||||
import {removeUndefined} from "@welshman/lib"
|
||||
import {deriveProfile} from "@welshman/app"
|
||||
import UserRounded from "@assets/icons/user-rounded.svg?dataurl"
|
||||
import ImageIcon from "@lib/components/ImageIcon.svelte"
|
||||
import {deriveDedupedProfile} from "@app/core/state"
|
||||
|
||||
type Props = {
|
||||
pubkey?: string
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
const {pubkey, url, size = 7, ...props}: Props = $props()
|
||||
|
||||
const profile = deriveProfile(pubkey, removeUndefined([url]))
|
||||
const profile = deriveDedupedProfile(pubkey, removeUndefined([url]))
|
||||
</script>
|
||||
|
||||
<ImageIcon
|
||||
|
||||
Reference in New Issue
Block a user