Merge pull request #799 from matrix-org/dbkr/fix_vanishing_people_section_clear_cache

Fix people section vanishing on 'clear cache'
This commit is contained in:
David Baker
2017-04-11 18:26:52 +01:00
committed by GitHub

View File

@@ -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();
});