-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Description
Welcome!
- Yes, I have searched for similar issues on GitHub and found none.
What did you do?
When a message is edited, it's row in the Message
table is updated to reflect the change (See whatsapp.baileys.service.ts#L1110 & whatsapp.baileys.service.ts#L3909)
I actually really appreciate that the original message is updated instead of a new record being created (as it used to happen in older versions where rows of type editedMessage
would be saved or as it currently happens with reactionMessage
), problem is, updating the timestamp of the message completely destroys the chat timeline. When reading the messages and sorting by timestamp, if I edit the second to last message, it now magically has become the latest message on the conversation, which is not the case, it's position in the chat timeline should be kept as is. On Whatsapp, editing a message does not change it's position on the chat.
What did you expect?
I'd expect messages timestamp ot to be altered.
What did you observe instead of what you expected?
Message timestamp is updated, breaking the chat message history.
Screenshots/Videos
No response
Which version of the API are you using?
v2.3.2 (latest as of issue creation)
What is your environment?
Docker
Other environment specifications
No response
If applicable, paste the log output
No response
Additional Notes
No response