mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
eraseAllStorageServiceState: Delete everything, delete in memory
This commit is contained in:
committed by
Jamie Kyle
parent
b7b725f74c
commit
90f0f8e255
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user