s/.done(/.then(/ since modern es6 track unhandled promise exceptions
This commit is contained in:
@@ -248,7 +248,7 @@ module.exports = createReactClass({
|
||||
return client.getStoredDevicesForUser(member.userId);
|
||||
}).finally(function() {
|
||||
self._cancelDeviceList = null;
|
||||
}).done(function(devices) {
|
||||
}).then(function(devices) {
|
||||
if (cancelled) {
|
||||
// we got cancelled - presumably a different user now
|
||||
return;
|
||||
@@ -572,7 +572,7 @@ module.exports = createReactClass({
|
||||
},
|
||||
).finally(()=>{
|
||||
this.setState({ updating: this.state.updating - 1 });
|
||||
}).done();
|
||||
}).then();
|
||||
},
|
||||
|
||||
onPowerChange: async function(powerLevel) {
|
||||
@@ -629,7 +629,7 @@ module.exports = createReactClass({
|
||||
this.setState({ updating: this.state.updating + 1 });
|
||||
createRoom({dmUserId: this.props.member.userId}).finally(() => {
|
||||
this.setState({ updating: this.state.updating - 1 });
|
||||
}).done();
|
||||
}).then();
|
||||
},
|
||||
|
||||
onLeaveClick: function() {
|
||||
|
||||
Reference in New Issue
Block a user