diff --git a/src/components/views/rooms/RoomList.tsx b/src/components/views/rooms/RoomList.tsx index fdf38784cf..b042414c85 100644 --- a/src/components/views/rooms/RoomList.tsx +++ b/src/components/views/rooms/RoomList.tsx @@ -428,7 +428,7 @@ export default class RoomList extends React.PureComponent { private renderSuggestedRooms(): ReactComponentElement[] { return this.state.suggestedRooms.map(room => { - const name = room.name || room.canonical_alias || room.aliases.pop() || _t("Empty room"); + const name = room.name || room.canonical_alias || room.aliases?.[0] || _t("Empty room"); const avatar = (