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:
David Baker 2017-04-11 18:16:29 +01:00
parent 95dfbc5546
commit d4dc16545a

View file

@ -443,6 +443,7 @@ module.exports = React.createClass({
_onClearCacheClicked: function() { _onClearCacheClicked: function() {
if (!PlatformPeg.get()) return; if (!PlatformPeg.get()) return;
MatrixClientPeg.get().stopClient();
MatrixClientPeg.get().store.deleteAllData().done(() => { MatrixClientPeg.get().store.deleteAllData().done(() => {
PlatformPeg.get().reload(); PlatformPeg.get().reload();
}); });