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

Commit d4dc165

Browse files
committed
Fix people section vanishing on 'clear cache'
Stop the client first Fixes element-hq/element-web#3610
1 parent 95dfbc5 commit d4dc165

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/structures/UserSettings.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ module.exports = React.createClass({
443443
_onClearCacheClicked: function() {
444444
if (!PlatformPeg.get()) return;
445445

446+
MatrixClientPeg.get().stopClient();
446447
MatrixClientPeg.get().store.deleteAllData().done(() => {
447448
PlatformPeg.get().reload();
448449
});

0 commit comments

Comments
 (0)