message: Use room alias in generated permalink for rooms
diff: @@ -130,8 +130,14 @@ export class RoomPermalinkCreator {
  }
  forRoom() {
  + try {
  + // Prefer to use canonical alias for permalink if possible
  + const alias = this._room.getCanonicalAlias();
  + return getPermalinkConstructor().forRoom(alias, this._serverCandidates);
  + } catch (error) {
  return getPermalinkConstructor().forRoom(this._roomId, this._serverCandidates);
  }
  + }
  onRoomState(event) {
  switch (event.getType()) {
  