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