use alt_aliases instead of aliases to match a pill to a room

when deserializing a pill
pull/21833/head
Bruno Windels 2020-02-21 12:58:41 +01:00
parent 8870da6c24
commit 16815a752b
1 changed files with 2 additions and 1 deletions

View File

@ -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);