eraseAllStorageServiceState: Delete everything, delete in memory
This commit is contained in:
parent
b7b725f74c
commit
90f0f8e255
7 changed files with 143 additions and 36 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue