Use the room ID as the react key

room alias doesn't work now some rooms don't have aliases.
This commit is contained in:
David Baker 2023-09-19 17:42:17 +01:00
parent 2e23176b34
commit 6581d64618

View File

@ -34,9 +34,9 @@ export function CallList({ rooms, client }: CallListProps) {
return (
<>
<div className={styles.callList}>
{rooms.map(({ room, roomAlias, roomName, avatarUrl, participants }) => (
{rooms.map(({ room, roomName, avatarUrl, participants }) => (
<CallTile
key={roomAlias}
key={roomName}
client={client}
name={roomName}
avatarUrl={avatarUrl}