morguldir
2022-09-17 09:51:22 +02:00
committed by GitHub
parent a8f374dd43
commit 4848bef0dd
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -147,6 +147,14 @@ class Settings extends EventEmitter {
return settings.isNotificationSounds;
}
clearCacheAndReload() {
const mx = initMatrix.matrixClient;
mx.stopClient()
mx.store.deleteAllData().then(() => {
window.location.reload();
});
}
setter(action) {
const actions = {
[cons.actions.settings.TOGGLE_SYSTEM_THEME]: () => {