Start to display messages list

This commit is contained in:
2025-11-25 12:17:48 +01:00
parent 5eab7c3e4f
commit 2adbf146d0
4 changed files with 87 additions and 3 deletions

View File

@@ -0,0 +1,15 @@
import { Avatar } from "@mui/material";
import type { UserProfile } from "../../api/matrix/MatrixApiProfile";
import { MatrixApiMedia } from "../../api/matrix/MatrixApiMedia";
export function AccountIcon(p: { user: UserProfile }): React.ReactElement {
return (
<Avatar
src={
p.user.avatar ? MatrixApiMedia.MediaURL(p.user.avatar, true) : undefined
}
>
{p.user.display_name?.slice(0, 1)}
</Avatar>
);
}