mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-01 11:03:18 +03:00
use alt_aliases instead of aliases to match a pill to a room
when deserializing a pill
This commit is contained in:
parent
8870da6c24
commit
16815a752b
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue