Skip to content

Conversation

@rnons
Copy link
Contributor

@rnons rnons commented Sep 13, 2025

depends on tulir/whatsmeow#926

@rnons rnons requested a review from tulir September 13, 2025 14:08
part, contextInfo = mc.convertEphemeralSettingMessage(ctx, waMsg.ProtocolMessage, info.Timestamp)
case waMsg.ProtocolMessage != nil && waMsg.ProtocolMessage.GetType() == waE2E.ProtocolMessage_MESSAGE_EDIT:
_cm := mc.ToMatrix(ctx, portal, client, intent, waMsg.ProtocolMessage.EditedMessage, nil, info, isViewOnce, nil)
part = _cm.Parts[0]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Edits are not handled here, they're unwrapped in the UnwrapRaw method

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to me UnwrapRaw only handles the root msg?
The case here is ProtocolMessage_MESSAGE_EDIT is nested in secretEncryptedMessage, after DecryptSecretEncryptedMessage, the QueueRemoteEvent will trigger the case here.
image

@tulir tulir closed this in 462bce6 Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants