Erase storage service state on key change

This commit is contained in:
Fedor Indutny 2022-02-02 13:15:39 -08:00 committed by GitHub
parent 4de30786ec
commit bbe56e0811
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 5 deletions

4
ts/window.d.ts vendored
View file

@ -285,7 +285,9 @@ declare global {
Services: {
calling: CallingClass;
enableStorageService: () => boolean;
eraseAllStorageServiceState: () => Promise<void>;
eraseAllStorageServiceState: (options?: {
keepUnknownFields?: boolean;
}) => Promise<void>;
initializeGroupCredentialFetcher: () => void;
initializeNetworkObserver: (network: ReduxActions['network']) => void;
initializeUpdateListener: (updates: ReduxActions['updates']) => void;