Use, if possible, a room's canonical or first alias when viewing the room

(Only affects rooms the user has never joined)
pull/21833/head
Luke Barnard 2017-11-03 17:37:13 +00:00
parent abff4ee6b5
commit 98312a4647
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ const RoomDetailRow = React.createClass({
dis.dispatch({
action: 'view_room',
room_id: this.props.room.roomId,
room_alias: this.props.room.canonicalAlias || this.props.room.aliases[0],
});
},