Clear electron data when logging out (#24827)
This commit is contained in:
@@ -389,4 +389,11 @@ export default class ElectronPlatform extends VectorBasePlatform {
|
|||||||
await this.ipc.call("destroyPickleKey", userId, deviceId);
|
await this.ipc.call("destroyPickleKey", userId, deviceId);
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async clearStorage(): Promise<void> {
|
||||||
|
try {
|
||||||
|
await super.clearStorage();
|
||||||
|
await this.ipc.call("clearStorage");
|
||||||
|
} catch (e) {}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user