feat(frontend): main menu lists accounts with their avatars, switching opens the last chat of that account

This commit is contained in:
hh committed 2026-10-19 02:02:31 +00:00
1 parent 3460246749
commit a1d3552519
10 files changed
+338 -55

No files matched your search

+2 -2
View File
@@ -3,7 +3,7 @@
import { initials as toInitials } from "#lib/format/peer.js";
interface Props {
avatar?: { kind: AvatarKind; id: number } | null;
avatar?: { account?: number; kind: AvatarKind; id: number } | null;
colorKey?: number;
deleted?: boolean;
hasAvatar?: boolean;
@@ -41,7 +41,7 @@
return;
}
let active = true;
loadAvatar(avatar.kind, avatar.id).then((resolved) => {
loadAvatar(avatar.kind, avatar.id, avatar.account).then((resolved) => {
if (active) {
url = resolved;
}