feat(frontend): main menu lists accounts with their avatars, switching opens the last chat of that account
This commit is contained in:
1 parent
3460246749
commit
a1d3552519
10 files changed
+338
-55
No files matched your search
@@ -66,9 +66,9 @@ async function fetchAvatar(
|
||||
|
||||
export function loadAvatar(
|
||||
kind: AvatarKind,
|
||||
id: number
|
||||
id: number,
|
||||
account: number | null = accounts.selectedId
|
||||
): Promise<string | null> {
|
||||
const account = accounts.selectedId;
|
||||
if (account === null) {
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user