Revert "s/.done(/.then(/ since modern es6 track unhandled promise exceptions"

This reverts commit 09a8fec2
This commit is contained in:
Michael Telatynski 2019-11-12 11:56:21 +00:00
parent 09a8fec261
commit 168b1b68bb
43 changed files with 72 additions and 74 deletions

View file

@ -524,7 +524,7 @@ export function logout() {
console.log("Failed to call logout API: token will not be invalidated");
onLoggedOut();
},
).then();
).done();
}
export function softLogout() {
@ -608,7 +608,7 @@ export function onLoggedOut() {
// that can occur when components try to use a null client.
dis.dispatch({action: 'on_logged_out'}, true);
stopMatrixClient();
_clearStorage().then();
_clearStorage().done();
}
/**