You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Fix people section vanishing on 'clear cache'
Stop the client first Fixes https://github.com/vector-im/riot-web/issues/3610
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user