From 16815a752b569db1f24d1ff2d92fc2da5f6a6572 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 21 Feb 2020 12:58:41 +0100 Subject: [PATCH] use alt_aliases instead of aliases to match a pill to a room when deserializing a pill --- src/editor/parts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);