Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix people section vanishing on 'clear cache'
Browse files Browse the repository at this point in the history
Stop the client first

Fixes element-hq/element-web#3610
  • Loading branch information
dbkr committed Apr 11, 2017
1 parent 95dfbc5 commit d4dc165
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/structures/UserSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,6 +443,7 @@ module.exports = React.createClass({
_onClearCacheClicked: function() {
if (!PlatformPeg.get()) return;

MatrixClientPeg.get().stopClient();
MatrixClientPeg.get().store.deleteAllData().done(() => {
PlatformPeg.get().reload();
});
Expand Down

0 comments on commit d4dc165

Please sign in to comment.