-
Notifications
You must be signed in to change notification settings - Fork 24
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
Group Preferences Actions #272
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not enough of an xmtp-ios expert to approve, but love to see this coming to life
public var senderHmac: Data { | ||
get {return _senderHmac ?? Data()} | ||
set {_senderHmac = newValue} | ||
} | ||
/// Returns true if `senderHmac` has been explicitly set. | ||
public var hasSenderHmac: Bool {return self._senderHmac != nil} | ||
/// Clears the value of `senderHmac`. Subsequent reads from it will return its default value. | ||
public mutating func clearSenderHmac() {self._senderHmac = nil} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this related to this PR? I'm curious why this is needed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That was included in the required protobuf bump: 1eab635
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One ? about the inclusion of hmac
functionality. Otherwise it looks very similar and good!
See my answer inline regarding the question. Thank you kindly for your time and attention to the review! 🫶🏼 |
@zombieobject Sorry for the late review on this. But looks like you missed updating one place This whole method needs to be rewritten to better align with Android. https://github.com/xmtp/xmtp-android/blob/main/library/src/main/java/org/xmtp/android/library/Conversation.kt#L91-L97 Could you do this in a follow up PR? |
@nplasterer Thank you kindly for the time to review and the feedback. I'll be sure to follow up with a patch PR! Update: Thanks for linking the diffs there. I can see clearly where the changes are needed. I think that I was only looking at the original PR and occasionally referencing the current source on Android at the time. Either way, I will improve my approach to diffing the changes between what was submitted in prior PR's vs what is currently in Android main at the time of my implementation. This was great run at learning how the team works and I enjoy this attention to detail! |
When implementing change for Group Preferences Actions, the consentState function was not updated. See PR: #272
@nplasterer - Patch PR for these changes ready: #275 |
When implementing change for Group Preferences Actions, the consentState function was not updated. See PR: #272
Introduction 📟
This Pull Request is intended to add Consent/Deny functionality to actions related to Group Messaging.
Discussion 🎙
The implementation follows closely with the work completed in the following Android SDK Pull Request