From 77e7bad4f1576c71be36c0104ce9aeabc3081025 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 15 Mar 2023 15:53:02 +0000 Subject: [PATCH] Clear electron data when logging out (#24827) --- src/vector/platform/ElectronPlatform.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/vector/platform/ElectronPlatform.tsx b/src/vector/platform/ElectronPlatform.tsx index 36c3137ab6..2e181a5111 100644 --- a/src/vector/platform/ElectronPlatform.tsx +++ b/src/vector/platform/ElectronPlatform.tsx @@ -389,4 +389,11 @@ export default class ElectronPlatform extends VectorBasePlatform { await this.ipc.call("destroyPickleKey", userId, deviceId); } catch (e) {} } + + public async clearStorage(): Promise { + try { + await super.clearStorage(); + await this.ipc.call("clearStorage"); + } catch (e) {} + } }