You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-19 05:22:13 +03:00
Handle rooms with no aliases or canonical alias
This commit is contained in:
@@ -49,7 +49,7 @@ const RoomDetailRow = React.createClass({
|
|||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'view_room',
|
action: 'view_room',
|
||||||
room_id: this.props.room.roomId,
|
room_id: this.props.room.roomId,
|
||||||
room_alias: this.props.room.canonicalAlias || this.props.room.aliases[0],
|
room_alias: this.props.room.canonicalAlias || (this.props.room.aliases || [])[0],
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user