Add facepile to homepage

This commit is contained in:
Robert Long
2021-10-04 15:37:23 -07:00
parent 8da7031b9e
commit 6f2870340a
4 changed files with 64 additions and 2 deletions

View File

@@ -29,6 +29,7 @@ import {
GroupCallIntent,
GroupCallType,
} from "matrix-js-sdk/src/browser-index";
import { Facepile } from "./Facepile";
const colorHash = new ColorHash({ lightness: 0.3 });
@@ -171,7 +172,7 @@ export function Home({ client, onLogout }) {
<section>
<h3>Recent Rooms</h3>
<div className={styles.roomList}>
{rooms.map((room) => (
{rooms.map(({ room, participants }) => (
<Link
className={styles.roomListItem}
key={room.roomId}
@@ -184,6 +185,7 @@ export function Home({ client, onLogout }) {
<span>{room.name.slice(0, 1)}</span>
</div>
<div className={styles.roomName}>{room.name}</div>
<Facepile participants={participants} />
</Link>
))}
</div>