some s/then/done/

This commit is contained in:
David Baker 2015-07-16 16:53:08 +01:00
parent 9b6060a363
commit e6260987cc
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ module.exports = {
var cli = MatrixClientPeg.get(); var cli = MatrixClientPeg.get();
this.setState({busy: true}); this.setState({busy: true});
var that = this; var that = this;
cli.loginFlows().then(function(result) { cli.loginFlows().done(function(result) {
that.setState({ that.setState({
flows: result.flows, flows: result.flows,
currentStep: 1, currentStep: 1,
@ -75,7 +75,7 @@ module.exports = {
MatrixClientPeg.get().login('m.login.password', { MatrixClientPeg.get().login('m.login.password', {
'user': formVals.username, 'user': formVals.username,
'password': formVals.password 'password': formVals.password
}).then(function(data) { }).done(function(data) {
// XXX: we assume this means we're logged in, but there could be a next stage // XXX: we assume this means we're logged in, but there could be a next stage
MatrixClientPeg.replace(Matrix.createClient({ MatrixClientPeg.replace(Matrix.createClient({
baseUrl: that.state.hs_url, baseUrl: that.state.hs_url,