also look in alt_aliases to match a pill to a room
This commit is contained in:
parent
16815a752b
commit
f6313b51e6
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ const Pill = createReactClass({
|
|||
const localRoom = resourceId[0] === '#' ?
|
||||
MatrixClientPeg.get().getRooms().find((r) => {
|
||||
return r.getCanonicalAlias() === resourceId ||
|
||||
r.getAliases().includes(resourceId);
|
||||
r.getAltAliases().includes(resourceId);
|
||||
}) : MatrixClientPeg.get().getRoom(resourceId);
|
||||
room = localRoom;
|
||||
if (!localRoom) {
|
||||
|
|
Loading…
Reference in a new issue