diff --git a/src/editor/parts.js b/src/editor/parts.js index 083ee38478..0e39e66bad 100644 --- a/src/editor/parts.js +++ b/src/editor/parts.js @@ -428,7 +428,8 @@ export class PartCreator { room = this._client.getRoom(roomId || alias); } else { room = this._client.getRooms().find((r) => { - return r.getCanonicalAlias() === alias || r.getAliases().includes(alias); + return r.getCanonicalAlias() === alias || + r.getAltAliases().includes(alias); }); } return new RoomPillPart(alias, room);