Use timestamp of edited message when editing

This commit is contained in:
Fedor Indutny 2023-04-20 13:50:19 -07:00 committed by GitHub
parent da09c72c99
commit abb839c24b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -192,7 +192,9 @@ export async function sendEditedMessage(
conversationId,
fromId,
message: tmpMessage,
targetSentTimestamp: targetMessage.attributes.timestamp,
targetSentTimestamp:
targetMessage.attributes.editMessageTimestamp ??
targetMessage.attributes.timestamp,
};
// Takes care of putting the message in the edit history, replacing the