Clear electron data when logging out (#10386)

This commit is contained in:
Michael Telatynski
2023-03-15 15:56:29 +00:00
committed by GitHub
parent f37ae1e230
commit 1e651bf1a5
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -862,6 +862,7 @@ export async function onLoggedOut(): Promise<void> {
stopMatrixClient();
await clearStorage({ deleteEverything: true });
LifecycleCustomisations.onLoggedOutAndStorageCleared?.();
await PlatformPeg.get()?.clearStorage();
// Do this last, so we can make sure all storage has been cleared and all
// customisations got the memo.