mirror of https://github.com/vector-im/riot-web
Fix people section vanishing on 'clear cache'
Stop the client first Fixes https://github.com/vector-im/riot-web/issues/3610pull/21833/head
parent
95dfbc5546
commit
d4dc16545a
|
@ -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 New Issue