Clear electron data when logging out (#24827)

pull/24842/head
Michael Telatynski 2023-03-15 15:53:02 +00:00 committed by GitHub
parent e7be53fe85
commit 77e7bad4f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -389,4 +389,11 @@ export default class ElectronPlatform extends VectorBasePlatform {
await this.ipc.call("destroyPickleKey", userId, deviceId);
} catch (e) {}
}
public async clearStorage(): Promise<void> {
try {
await super.clearStorage();
await this.ipc.call("clearStorage");
} catch (e) {}
}
}