Skip to content
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

Response to specific message #88

Closed
hajsf opened this issue Apr 8, 2022 · 1 comment
Closed

Response to specific message #88

hajsf opened this issue Apr 8, 2022 · 1 comment

Comments

@hajsf
Copy link

hajsf commented Apr 8, 2022

Is there a way to reply for a specific message, same like the case in the WhatsApp app, where we hold a specific message and reply to it. Thanks

@tulir
Copy link
Owner

tulir commented Apr 8, 2022

StanzaId (which message ID are you replying to), Participant (JID of user who sent that message) and optionally QuotedMessage (the content of that message) inside ContextInfo. Requires using ExtendedTextMessage for text messages.

(QuotedMessage is optional because other users' whatsapp clients won't trust it anyway. If you omit it, your own clients will show a blank quote, but everyone else will see it correctly as long as StanzaId and Participant are correct)

@tulir tulir closed this as completed Apr 8, 2022
yousefmansy1 added a commit to yousefmansy1/matterbridge that referenced this issue Feb 18, 2023
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>
yousefmansy1 added a commit to yousefmansy1/matterbridge that referenced this issue Feb 22, 2023
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>
yousefmansy1 added a commit to yousefmansy1/matterbridge that referenced this issue Feb 22, 2023
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>
yousefmansy1 added a commit to yousefmansy1/matterbridge that referenced this issue Feb 24, 2023
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>
42wim pushed a commit to 42wim/matterbridge that referenced this issue Mar 9, 2023
* 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 #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.
yousefmansy1 added a commit to yousefmansy1/matterbridge that referenced this issue Mar 10, 2023
* 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.
yousefmansy1 added a commit to yousefmansy1/matterbridge that referenced this issue Mar 11, 2023
* 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants