mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-23 07:21:22 +02:00
accept canonical alias for pills
This commit is contained in:
parent
86c871f55f
commit
fee9c7d21f
@ -128,7 +128,8 @@ const Pill = createReactClass({
|
||||
case Pill.TYPE_ROOM_MENTION: {
|
||||
const localRoom = resourceId[0] === '#' ?
|
||||
MatrixClientPeg.get().getRooms().find((r) => {
|
||||
return r.getAliases().includes(resourceId);
|
||||
return r.getCanonicalAlias() === resourceId ||
|
||||
r.getAliases().includes(resourceId);
|
||||
}) : MatrixClientPeg.get().getRoom(resourceId);
|
||||
room = localRoom;
|
||||
if (!localRoom) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user