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] === '#' ?
|
const localRoom = resourceId[0] === '#' ?
|
||||||
MatrixClientPeg.get().getRooms().find((r) => {
|
MatrixClientPeg.get().getRooms().find((r) => {
|
||||||
return r.getCanonicalAlias() === resourceId ||
|
return r.getCanonicalAlias() === resourceId ||
|
||||||
r.getAliases().includes(resourceId);
|
r.getAltAliases().includes(resourceId);
|
||||||
}) : MatrixClientPeg.get().getRoom(resourceId);
|
}) : MatrixClientPeg.get().getRoom(resourceId);
|
||||||
room = localRoom;
|
room = localRoom;
|
||||||
if (!localRoom) {
|
if (!localRoom) {
|
||||||
|
|
Loading…
Reference in a new issue