mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 07:21:22 +02:00
also look in alt_aliases to match a pill to a room
This commit is contained in:
parent
16815a752b
commit
f6313b51e6
@ -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…
x
Reference in New Issue
Block a user