You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
accept canonical alias for pills
This commit is contained in:
@@ -128,7 +128,8 @@ const Pill = createReactClass({
|
|||||||
case Pill.TYPE_ROOM_MENTION: {
|
case Pill.TYPE_ROOM_MENTION: {
|
||||||
const localRoom = resourceId[0] === '#' ?
|
const localRoom = resourceId[0] === '#' ?
|
||||||
MatrixClientPeg.get().getRooms().find((r) => {
|
MatrixClientPeg.get().getRooms().find((r) => {
|
||||||
return r.getAliases().includes(resourceId);
|
return r.getCanonicalAlias() === resourceId ||
|
||||||
|
r.getAliases().includes(resourceId);
|
||||||
}) : MatrixClientPeg.get().getRoom(resourceId);
|
}) : MatrixClientPeg.get().getRoom(resourceId);
|
||||||
room = localRoom;
|
room = localRoom;
|
||||||
if (!localRoom) {
|
if (!localRoom) {
|
||||||
|
|||||||
Reference in New Issue
Block a user