perf: throttle member list derivation and use deduped profile stores in SpaceMembers and RoomMembersAdd

This commit is contained in:
nayan9617
2026-04-30 16:53:44 +05:30
parent 6f82485200
commit d33ed4105d
5 changed files with 16 additions and 14 deletions
+2 -2
View File
@@ -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