Do not confirm DOE or edit until it is processed
This commit is contained in:
parent
7b6cd00b3f
commit
d8ea785f4e
12 changed files with 145 additions and 138 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue