Skip to content

Commit

Permalink
process-message: Flip message key of edit to find the original message
Browse files Browse the repository at this point in the history
  • Loading branch information
purpshell committed Feb 16, 2025
1 parent 5f232ee commit b847006
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Utils/process-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ const processMessage = async(
'messages.update',
[
{
key: protocolMsg.key!,
// flip the sender / fromMe properties because they're in the perspective of the sender
key: { ...message.key, id: protocolMsg.key?.id },
update: {
message: {
editedMessage: {
Expand Down

0 comments on commit b847006

Please sign in to comment.