eraseAllStorageServiceState: Delete everything, delete in memory

This commit is contained in:
Scott Nonnenberg 2023-08-17 16:35:41 -07:00 committed by Jamie Kyle
parent b7b725f74c
commit 90f0f8e255
7 changed files with 143 additions and 36 deletions

View file

@ -500,7 +500,6 @@ export type DataInterface = {
removeAllSessions: () => Promise<void>;
getAllSessions: () => Promise<Array<SessionType>>;
eraseStorageServiceStateFromConversations: () => Promise<void>;
getConversationCount: () => Promise<number>;
saveConversation: (data: ConversationType) => Promise<void>;
saveConversations: (array: Array<ConversationType>) => Promise<void>;
@ -794,6 +793,7 @@ export type DataInterface = {
removeAll: () => Promise<void>;
removeAllConfiguration: (type?: RemoveAllConfiguration) => Promise<void>;
eraseStorageServiceState: () => Promise<void>;
getMessagesNeedingUpgrade: (
limit: number,
@ -933,6 +933,7 @@ export type ClientExclusiveInterface = {
updateConversation: (data: ConversationType) => void;
removeConversation: (id: string) => Promise<void>;
flushUpdateConversationBatcher: () => Promise<void>;
searchMessages: ({
query,