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:
parent
95dfbc5546
commit
d4dc16545a
1 changed files with 1 additions and 0 deletions
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue