mautrix / whatsapp

A Matrix-WhatsApp puppeting bridge
https://maunium.net/go/mautrix-whatsapp
GNU Affero General Public License v3.0
1.29k stars 175 forks source link

Reaction bridging fails if the target message decryption failed initially #568

Closed uumas closed 2 months ago

uumas commented 2 years ago

So the message decryption from whatsapp failed initially but the bridge edited the message soon after: image

When reacting to the edited event on Matrix, it fails with ⚠ Your reaction may not have been bridged: unknown target event $<eventid>, where is the id of the original event. When bridging reactions to that message from whatsapp, the reaction is applied to the message edit event, rather than the original so it's not visible in matrix.

So it seems Element reacts to the original message when it was edited, while the bridge reacts to the edit.

nolimbsdotdev commented 10 months ago

This issue is probably more general and is triggered when reacting to any message that is edited (thereby changing the eventid). I observed this on a message edited by the user (there was no encryption problem) just this morning. [mautrix-whatsapp v0.10.5].