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

View File

@@ -192,7 +192,9 @@ export async function sendEditedMessage(
conversationId, conversationId,
fromId, fromId,
message: tmpMessage, 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 // Takes care of putting the message in the edit history, replacing the