atagen

malice

public
Star0
Watch0

Commit b41f916279d2

tarball

atagen <boss@atagen.co>2026-10-24 10:27 UTC

1 file changed+0-9
web: stop loading the roster to fill in sender names

macltok 6ed8c0e resolves sender profiles in the timeline itself, so the members request on every room open is no longer needed.
Modified file: web/src/App.svelte−9 deletions
@@ -1240,15 +1240,6 @@
12401240 return out;
12411241 }
12421242
1243- const rosterTried = new Set<string>();
1244- $: fillMissingNames($selectedRoomId, items);
1245- function fillMissingNames(roomId: string | null, list: TimelineItem[]): void {
1246- if (!roomId || rosterTried.has(roomId) || $membersByRoom[roomId]) return;
1247- if (!list.some((i) => i.kind === 'event' && !i.event.sender.display_name)) return;
1248- rosterTried.add(roomId);
1249- void loadMembers(roomId);
1250- }
1251-
12521243 function senderAvatarFor(userId: string): string | null {
12531244 return avatarByUser[userId] ?? null;
12541245 }