Admin Delete

This commit is contained in:
Jamie
2026-02-27 11:55:02 -08:00
committed by Yash
parent b71b5570d3
commit e424610cc2
67 changed files with 2328 additions and 569 deletions

View File

@@ -23,7 +23,7 @@ import {
sendStateReducer,
} from '../messages/MessageSendState.std.js';
import { canConversationBeUnarchived } from './canConversationBeUnarchived.preload.js';
import { deleteForEveryone } from './deleteForEveryone.preload.js';
import { receiveDeleteForEveryone } from './deleteForEveryone.preload.js';
import { drop } from './drop.std.js';
import { handleEditMessage } from './handleEditMessage.preload.js';
import { isGroup } from './whatTypeOfConversation.dom.js';
@@ -349,7 +349,9 @@ export async function modifyTargetMessage(
const deletes = Deletes.forMessage(message.attributes);
await Promise.all(
deletes.map(async del => {
await deleteForEveryone(message, del, { shouldPersist: !isFirstRun });
await receiveDeleteForEveryone(message, del, {
shouldPersist: !isFirstRun,
});
changed = true;
})
);