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

Commit 64b555d

Browse files
authored
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
2 parents 3b23fc7 + 807f01b commit 64b555d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/structures/RoomView.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@ module.exports = React.createClass({
14631463

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

0 commit comments

Comments
 (0)