-
Notifications
You must be signed in to change notification settings - Fork 0
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
Mc/add membership type #151
Conversation
1e6e9db
to
2a790ed
Compare
@@ -110,12 +118,14 @@ data class MembershipImpl( | |||
user, | |||
update.custom?.value ?: custom, |
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.
actually I noticed an error in my code, it should be:
update.custom.let { newCustom -> if (newCustom != null) newCustom.value else custom },
and the new ones (status and type) should follow the same pattern
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.
What is a difference between:
update.custom?.value ?: custom,
and
update.custom.let { newCustom -> if (newCustom != null) newCustom.value else custom },
?
includeCustom = true, | ||
includeStatus = false, | ||
includeType = false, | ||
includeTotalCount = true, | ||
includeChannel = true, | ||
includeChannelCustom = true, | ||
includeChannelType = true, | ||
includeChannelStatus = false |
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.
we should probably set all includes to true everywhere, otherwise there's no way to get e.g. status and type for memberships, since the user can't override it
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.
Good point. I will check all cases where include params are needed.
In new version of PubNub core js sdk verbose logging has been added that slows down test execution.
95bbb0f
to
2bcaf27
Compare
@pubnub-release-bot release kotlin as 0.10.0 |
1 similar comment
@pubnub-release-bot release kotlin as 0.10.0 |
🚀 Release successfully completed 🚀 |
feat: Added status and type to Membership.