5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-26 05:15:38 +00:00
matterbridge/bridge/whatsappmulti
Joseph Mansy d00dcf3f58
Handle Whatsapp threading/replies (whatsapp) (#1974)
* Handle Whatsapp threading/replies.
In this change we are updating whatsapp message IDs to include sender JID as this is necessary to reply to a message
https://github.com/tulir/whatsmeow/issues/88#issuecomment-1093195237
https://github.com/tulir/whatsmeow/discussions/148#discussioncomment-3094325

Based on commit 6afa93e537c53b371db37f35a3546ff0fb669416 from #1934
    Author: Iiro Laiho <iiro.laiho@iki.fi>

* Fix replies.
Sender JID can have a `:` inside of it, using `/` as a delimiter now.
Added messageID parser + struct.
messages sent with an attachment do not show replies
But at least common `sendMessage` will make repies from whatsapp to an attachement bridge across.

The new message ID format broke message deleting, so we change the messageID into the real id at the beginning of send.
We really do need the extra info for when we reply to a message though.

* Refactored message replies.
file/Image/audio/replies all work now.
2023-03-09 21:57:19 +01:00
..
handlers.go Handle Whatsapp threading/replies (whatsapp) (#1974) 2023-03-09 21:57:19 +01:00
helpers.go Handle Whatsapp threading/replies (whatsapp) (#1974) 2023-03-09 21:57:19 +01:00
whatsapp.go Handle Whatsapp threading/replies (whatsapp) (#1974) 2023-03-09 21:57:19 +01:00