Maps sent edit message timestamps to their original messages
This commit is contained in:
parent
216ee67c50
commit
ac8bec1ac0
1 changed files with 5 additions and 4 deletions
|
@ -82,8 +82,11 @@ export async function sendEditedMessage(
|
||||||
}
|
}
|
||||||
|
|
||||||
const timestamp = Date.now();
|
const timestamp = Date.now();
|
||||||
|
const targetSentTimestamp =
|
||||||
|
targetMessage.attributes.editMessageTimestamp ??
|
||||||
|
targetMessage.attributes.timestamp;
|
||||||
|
|
||||||
log.info(`${idLog}: sending ${timestamp}`);
|
log.info(`${idLog}: edited(${timestamp}) original(${targetSentTimestamp})`);
|
||||||
|
|
||||||
conversation.clearTypingTimers();
|
conversation.clearTypingTimers();
|
||||||
|
|
||||||
|
@ -192,9 +195,7 @@ export async function sendEditedMessage(
|
||||||
conversationId,
|
conversationId,
|
||||||
fromId,
|
fromId,
|
||||||
message: tmpMessage,
|
message: tmpMessage,
|
||||||
targetSentTimestamp:
|
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
|
||||||
|
|
Loading…
Reference in a new issue