mirror of https://github.com/vector-im/riot-web
use alt_aliases instead of aliases to match a pill to a room
when deserializing a pillpull/21833/head
parent
8870da6c24
commit
16815a752b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue