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

@ -107,6 +107,8 @@ const exclusiveInterface: ClientExclusiveInterface = {
// Client-side only
flushUpdateConversationBatcher,
shutdown,
removeAllMessagesInConversation,
@ -458,6 +460,9 @@ const updateConversationBatcher = createBatcher<ConversationType>({
function updateConversation(data: ConversationType): void {
updateConversationBatcher.add(data);
}
async function flushUpdateConversationBatcher(): Promise<void> {
await updateConversationBatcher.flushAndWait();
}
async function updateConversations(
array: Array<ConversationType>