Disable facepile
This commit is contained in:
parent
289f7285ae
commit
6da369f3fe
2 changed files with 12 additions and 4 deletions
|
|
@ -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}
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue