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

when deserializing a pill
This commit is contained in:
Bruno Windels 2020-02-21 12:58:41 +01:00
parent 8870da6c24
commit 16815a752b

View file

@ -428,7 +428,8 @@ export class PartCreator {
room = this._client.getRoom(roomId || alias); room = this._client.getRoom(roomId || alias);
} else { } else {
room = this._client.getRooms().find((r) => { 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); return new RoomPillPart(alias, room);