mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 02:05:45 +03:00
Fix 'start chat' button on MemberInfo
this/self fail & related scoping Fixes https://github.com/vector-im/vector-web/issues/1844
This commit is contained in:
parent
46a2c74d71
commit
b07e50d418
1 changed files with 4 additions and 4 deletions
|
@ -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…
Reference in a new issue