Skip to content

Conversation

@KishanBagaria
Copy link
Contributor

No description provided.

content := &undecryptableMessageContent
if evt.Type == events.UnavailableTypeViewOnce {
verb := "received"
if evt.Info.IsFromMe {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

i forget if IsFromMe is always accurate, like would this be true if another device relayed us someone else's message?

Copy link
Member

Choose a reason for hiding this comment

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

It is always accurate, responses to message requests from phone are wrapped in a WebMessageInfo in order to have accurate event metadata

@tulir
Copy link
Member

tulir commented Oct 5, 2025

I think that's not entirely accurate either, since you can't actually open your own view-once media. This is what native shows:

image

@KishanBagaria
Copy link
Contributor Author

good catch, updated the copy

@KishanBagaria KishanBagaria enabled auto-merge (squash) October 5, 2025 15:00
@KishanBagaria KishanBagaria merged commit f7fa9fe into main Oct 5, 2025
11 checks passed
@KishanBagaria KishanBagaria deleted the kb/view-once-copy branch October 5, 2025 15:29
fru-9D added a commit to fru-9D/whatsapp that referenced this pull request Oct 21, 2025
* chatinfo: flag group resyncs as excluded from timeline

* handlematrix: implement account data interfaces

* dependencies: update whatsmeow and set PostgresArrayWrapper properly

* dependencies: update whatsmeow

* dependencies: update whatsmeow

* client: enable synchronous acks and decrypted event buffer for everyone

* dependencies: update whatsmeow

* client: disable decrypted event buffer

* dependencies: update whatsmeow

* msgconv: fix view once placeholder copy when you send instead of receive (mautrix#848)

Co-authored-by: Rajeh Taher <[email protected]>

* fixed issue in placeholders appearing when media sync is turned off

---------

Co-authored-by: Tulir Asokan <[email protected]>
Co-authored-by: Kishan Bagaria <[email protected]>
Co-authored-by: Rajeh Taher <[email protected]>
Co-authored-by: Faraz Haider <[email protected]>
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