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

Make some PrivateMessageIn fields public #36

Merged
merged 1 commit into from
Aug 23, 2024

Conversation

neekolas
Copy link

tl;dr

We want to access the content_type field from libxmtp, so we are making that (and a few other safe fields) public.

@neekolas neekolas marked this pull request as ready for review August 23, 2024 17:50
Copy link
Author

neekolas commented Aug 23, 2024

Merge activity

  • Aug 23, 1:17 PM PDT: @neekolas started a stack merge that includes this pull request via Graphite.
  • Aug 23, 1:17 PM PDT: @neekolas merged this pull request with Graphite.

@neekolas neekolas merged commit 1f01177 into main Aug 23, 2024
52 checks passed
neekolas added a commit to xmtp/libxmtp that referenced this pull request Aug 23, 2024
## Summary

- When you receive a commit from a stream, we need to abort processing the message and sync instead. Previously we did that by decrypting the message and looking at the content to see what kind of message it was.
- There is a better way. There was a private method on the `PrivateMessageIn` that I have now made public that will let us see what kind of message it is _before_ decrypting.
- This should make streaming more performant and reliable, since we don't have to decrypt the message twice

## Related

xmtp/openmls#36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants