fix invite prompt

This commit is contained in:
Matthew Hodgson 2016-01-18 20:18:46 +00:00
parent c29ec28dfd
commit 2274cb3f7f

View file

@ -40,15 +40,14 @@ module.exports = React.createClass({
render: function() {
var joinBlock, previewBlock;
if (this.props.inviter) {
if (this.props.inviterName) {
joinBlock = (
<div>
<div className="mx_RoomPreviewBar_invite_text">
You have been invited to join this room by { this.props.inviterName }
</div>
<div className="mx_RoomPreviewBar_join_text">
Would you like to <a onClick={ this.props.onJoinClick }>accept</a> or
<a onClick={ this.props.onRejectClick }>decline</a> this invitation?
Would you like to <a onClick={ this.props.onJoinClick }>accept</a> or <a onClick={ this.props.onRejectClick }>decline</a> this invitation?
</div>
</div>
);