Disable facepile

This commit is contained in:
Robert Long 2022-01-21 11:10:12 -08:00
commit 6da369f3fe
2 changed files with 12 additions and 4 deletions

View file

@ -8,7 +8,7 @@ import styles from "./CallList.module.css";
import { getRoomUrl } from "../matrix-utils"; import { getRoomUrl } from "../matrix-utils";
import { Body, Caption } from "../typography/Typography"; import { Body, Caption } from "../typography/Typography";
export function CallList({ rooms, client }) { export function CallList({ rooms, client, disableFacepile }) {
return ( return (
<> <>
<div className={styles.callList}> <div className={styles.callList}>
@ -20,6 +20,7 @@ export function CallList({ rooms, client }) {
avatarUrl={avatarUrl} avatarUrl={avatarUrl}
roomId={roomId} roomId={roomId}
participants={participants} participants={participants}
disableFacepile={disableFacepile}
/> />
))} ))}
{rooms.length > 3 && ( {rooms.length > 3 && (
@ -33,7 +34,14 @@ export function CallList({ rooms, client }) {
); );
} }
function CallTile({ name, avatarUrl, roomId, participants, client }) { function CallTile({
name,
avatarUrl,
roomId,
participants,
client,
disableFacepile,
}) {
return ( return (
<div className={styles.callTile}> <div className={styles.callTile}>
<Link to={`/room/${roomId}`} className={styles.callTileLink}> <Link to={`/room/${roomId}`} className={styles.callTileLink}>
@ -49,7 +57,7 @@ function CallTile({ name, avatarUrl, roomId, participants, client }) {
{name} {name}
</Body> </Body>
<Caption overflowEllipsis>{getRoomUrl(roomId)}</Caption> <Caption overflowEllipsis>{getRoomUrl(roomId)}</Caption>
{participants && ( {participants && !disableFacepile && (
<Facepile <Facepile
className={styles.facePile} className={styles.facePile}
client={client} client={client}

View file

@ -107,7 +107,7 @@ export function RegisteredView({ client }) {
<Title className={styles.recentCallsTitle}> <Title className={styles.recentCallsTitle}>
Your recent Calls Your recent Calls
</Title> </Title>
<CallList rooms={recentRooms} client={client} /> <CallList rooms={recentRooms} client={client} disableFacepile />
</> </>
)} )}
</main> </main>