s/.done(/.then(/ since modern es6 track unhandled promise exceptions
This commit is contained in:
@@ -75,7 +75,7 @@ export default class HelpUserSettingsTab extends React.Component {
|
||||
// stopping in the middle of the logs.
|
||||
console.log("Clear cache & reload clicked");
|
||||
MatrixClientPeg.get().stopClient();
|
||||
MatrixClientPeg.get().store.deleteAllData().done(() => {
|
||||
MatrixClientPeg.get().store.deleteAllData().then(() => {
|
||||
PlatformPeg.get().reload();
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user