Skip to content

Commit b847006

Browse files
committed
process-message: Flip message key of edit to find the original message
1 parent 5f232ee commit b847006

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Utils/process-message.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,8 @@ const processMessage = async(
303303
'messages.update',
304304
[
305305
{
306-
key: protocolMsg.key!,
306+
// flip the sender / fromMe properties because they're in the perspective of the sender
307+
key: { ...message.key, id: protocolMsg.key?.id },
307308
update: {
308309
message: {
309310
editedMessage: {

0 commit comments

Comments
 (0)