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

feat: integrate `shouldPush' for React Native #184

Conversation

kele-leanes
Copy link
Contributor

Description:
Accept shouldPush as a parameter from RN

Copy link
Contributor

@nplasterer nplasterer left a comment

Choose a reason for hiding this comment

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

Approving this so we can merge it into the bigger PR for complete review.

@nplasterer nplasterer merged commit 887f1f4 into gg/enhancement/add_sender_hmac_to_message_v2 Feb 20, 2024
0 of 3 checks passed
@nplasterer nplasterer deleted the kele/integrate-shouldPush-rn branch February 20, 2024 05:08
@nplasterer
Copy link
Contributor

@kele-leanes when I merged this PR into the base PR a bunch of stuff broke. Do you mind fixing that? Looks like you need to update the shouldPush method in a couple more places for decryptedMessages

kele-leanes pushed a commit that referenced this pull request Feb 28, 2024
kele-leanes pushed a commit that referenced this pull request Feb 28, 2024
* Add shouldPush property to SendOptions

* Add shouldPush property to DecryptedMessage class

* Add shouldPush parameter to ConversationV2 and MessageV2Builder
kele-leanes pushed a commit that referenced this pull request Feb 28, 2024
nplasterer added a commit that referenced this pull request Mar 1, 2024
* Adding the way for adding should push and hmac

* Adding new approach for codecs and crypto

* Solving test for conversation using new flag

* Update ConversationV2.kt

* do kotlin way of extending proto class

* Adding the proper way to manage the codec changes

* Update GroupMembershipChangeCodec.kt

* Update library/src/main/java/org/xmtp/android/library/Crypto.kt

Co-authored-by: Brendan McMillion <brendanmcmillion@gmail.com>

* Update library/src/main/java/org/xmtp/android/library/Crypto.kt

Co-authored-by: Brendan McMillion <brendanmcmillion@gmail.com>

* Update library/src/main/java/org/xmtp/android/library/Crypto.kt

Co-authored-by: Brendan McMillion <brendanmcmillion@gmail.com>

* add method to get the hmac keys

* fix up the crypto

* add the get keys code for hmacs

* remove unneeded crypto code

* write a test for it

* get the test to pass

* feat: integrate `shouldPush' for React Native (#184)

* Add shouldPush property to SendOptions

* Add shouldPush property to DecryptedMessage class

* Add shouldPush parameter to ConversationV2 and MessageV2Builder

* Update GroupMembershipChangeTest.kt

* Removing issues and failing tests

* Update GroupMembershipChangeTest.kt

* Updating shouldPush flag and removing issues in instrumental testing

* Ignoring failing tests

* remove all the ignored tests

* feat: add shouldPush property to MessageV2Builder

* fix up the lint issue

* fix: deriveKey function and improvements

* fix: getHmacKeys method

* fix: CodecText.kt

* Revert "feat: integrate `shouldPush' for React Native (#184)"

This reverts commit 887f1f4.

* Revert "Removing issues and failing tests"

This reverts commit e6cecc7.

* Remove @ignore annotations from GroupTest

---------

Co-authored-by: Giovani Gonzalez <darkgeat@gmail.com>
Co-authored-by: Naomi Plasterer <naomi@xmtp.com>
Co-authored-by: Brendan McMillion <brendanmcmillion@gmail.com>
Co-authored-by: Ezequiel Leanes <ezequiel.leanes@distillery.com>
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