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

Set timestamp for every DataMessage #290

Merged
merged 2 commits into from
Nov 11, 2024

Conversation

hrdl-github
Copy link
Contributor

This imitates the behaviour of Signal-Desktop and is required to pass envelope content validation. Previous reactions would emit this field.

This is less error-prone than requiring clients to send the timestamp in data messages.

Fixes some more instances of boxdot/gurk-rs#110 and boxdot/gurk-rs#147.

@hrdl-github
Copy link
Contributor Author

If I read my logs correctly, https://github.com/signalapp/Signal-Android/blob/0891a161b2d2b5de819f98d829370a8f12e7c124/libsignal-service/src/main/java/org/whispersystems/signalservice/api/messages/EnvelopeContentValidator.kt#L195 is triggered when syncing something that looks like a preceding receipt message, which isn't quite intended, I guess.

This imitates the behaviour of Signal-Desktop and is required to pass envelope content validation. Previous reactions would emit this field.
@hrdl-github hrdl-github force-pushed the fix-datamessage-timestamp branch from b8c0a3b to 0ff13ec Compare November 7, 2024 15:59
@gferon gferon enabled auto-merge (squash) November 10, 2024 23:22
@gferon gferon merged commit 426b156 into whisperfish:main Nov 11, 2024
3 checks passed
hrdl-github added a commit to hrdl-github/presage that referenced this pull request Nov 13, 2024
The previous attempt whisperfish#290 was missing nested data messages as well as group messages.
gferon pushed a commit that referenced this pull request Nov 14, 2024
The previous attempt #290 was missing nested data messages as well as group messages.
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

Successfully merging this pull request may close these issues.

2 participants