Do not confirm DOE or edit until it is processed

This commit is contained in:
Josh Perez 2023-08-07 12:36:37 -04:00 committed by GitHub
parent 7b6cd00b3f
commit d8ea785f4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 145 additions and 138 deletions

View file

@ -194,18 +194,14 @@ export async function sendEditedMessage(
type: 'outgoing',
};
// Building up the dependencies for handling the edit message
const editAttributes = {
// Takes care of putting the message in the edit history, replacing the
// main message's values, and updating the conversation's properties.
await handleEditMessage(targetMessage.attributes, {
conversationId,
fromId,
fromDevice: window.storage.user.getDeviceId() ?? 1,
message: tmpMessage,
targetSentTimestamp,
};
// Takes care of putting the message in the edit history, replacing the
// main message's values, and updating the conversation's properties.
await handleEditMessage(targetMessage.attributes, editAttributes);
});
// Inserting the send into a job and saving it to the message
await timeAndLogIfTooLong(