Merge pull request #1107 from matrix-org/luke/fix-use-room-alias-in-preview

Make sure to pass the roomAlias to the preview header if we have it
pull/21833/head
David Baker 2017-06-16 11:21:03 +01:00 committed by GitHub
commit 64b555dfe3
1 changed files with 2 additions and 2 deletions

View File

@ -1463,7 +1463,7 @@ module.exports = React.createClass({
// We have no room object for this room, only the ID.
// We've got to this room by following a link, possibly a third party invite.
var room_alias = this.state.room_alias;
const roomAlias = this.state.roomAlias;
return (
<div className="mx_RoomView">
<RoomHeader ref="header"
@ -1476,7 +1476,7 @@ module.exports = React.createClass({
onForgetClick={ this.onForgetClick }
onRejectClick={ this.onRejectThreepidInviteButtonClicked }
canPreview={ false } error={ this.state.roomLoadError }
roomAlias={room_alias}
roomAlias={roomAlias}
spinner={previewBarSpinner}
inviterName={inviterName}
invitedEmail={invitedEmail}