Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #1107 from matrix-org/luke/fix-use-room-alias-in-p…
Browse files Browse the repository at this point in the history
…review

Make sure to pass the roomAlias to the preview header if we have it
  • Loading branch information
dbkr authored Jun 16, 2017
2 parents 3b23fc7 + 807f01b commit 64b555d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/structures/RoomView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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}
Expand Down

0 comments on commit 64b555d

Please sign in to comment.