-
Notifications
You must be signed in to change notification settings - Fork 617
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle Whatsapp threading/replies #1974
Conversation
In this change we are updating whatsapp message IDs to include sender JID as this is necessary to reply to a message tulir/whatsmeow#88 (comment) tulir/whatsmeow#148 (comment) Based on commit 6afa93e from 42wim#1934 Author: Iiro Laiho <iiro.laiho@iki.fi>
629bce5
to
39f909b
Compare
Finally figured out the issue. Only figured it out by taking a look at the mautrix-whatsapp repo and tracing through what they're doing. Granted the issues I linked actually mentioned this upon looking at it again. |
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.
file/Image/audio/replies all work now.
Code Climate has analyzed commit 264ab84 and detected 7 issues on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
Should your PR now work in both directions? I can probaly try it this weekend. I have my draft PR running in my instance, but it is rx-only. |
Yes it works in both directions. 👍 |
I believe this might be unavoidable, as then you have matterbridge/bridge/telegram/handlers.go Lines 113 to 119 in 24f6747
This would require some more significant rework of how replies work to resolve. For now you'll just have to use |
Great job @yousefmansy1 ! |
* 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 tulir/whatsmeow#88 (comment) tulir/whatsmeow#148 (comment) Based on commit 6afa93e from 42wim#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.
* 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 tulir/whatsmeow#88 (comment) tulir/whatsmeow#148 (comment) Based on commit 6afa93e from 42wim#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.
Handle Whatsapp threading/replies, based on commit 6afa93e from #1934
In this change we are updating whatsapp message IDs to include sender JID as this is necessary to reply to a message