mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-21 22:41:07 +02:00
Merge pull request #363 from matrix-org/dbkr/fix_start_chat
Fix 'start chat' button on MemberInfo
This commit is contained in:
commit
ece575bd00
@ -406,14 +406,14 @@ module.exports = React.createClass({
|
|||||||
this.props.onFinished();
|
this.props.onFinished();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
self.setState({ updating: self.state.updating + 1 });
|
this.setState({ updating: this.state.updating + 1 });
|
||||||
createRoom({
|
createRoom({
|
||||||
createOpts: {
|
createOpts: {
|
||||||
invite: [this.props.member.userId],
|
invite: [this.props.member.userId],
|
||||||
},
|
},
|
||||||
}).finally(function() {
|
}).finally(() => {
|
||||||
self.props.onFinished();
|
this.props.onFinished();
|
||||||
self.setState({ updating: self.state.updating - 1 });
|
this.setState({ updating: this.state.updating - 1 });
|
||||||
}).done();
|
}).done();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user