-
Notifications
You must be signed in to change notification settings - Fork 222
Fix unsetProperties
not having any effect in CurrentUserController.updateUserData()
#3650
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
Fix unsetProperties
not having any effect in CurrentUserController.updateUserData()
#3650
Conversation
SDK Performance
|
/// - completion: Called when user is successfuly updated, or with error. | ||
func updateUserData( | ||
name: String? = nil, | ||
imageURL: URL? = nil, | ||
privacySettings: UserPrivacySettings? = nil, | ||
role: UserRole? = nil, | ||
teamsRole: [String: String]? = nil, | ||
teamsRole: [TeamId: UserRole]? = 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.
TeamId is not a breaking change. But UserRole it is kinda a breaking change. IMO it is not a big deal, but let me know WDYT. Overall it would be nice we keep the consistency of the types 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's fine - we don't advertise this feature for now anyway.
SDK Size
|
|
/// - completion: Called when user is successfuly updated, or with error. | ||
func updateUserData( | ||
name: String? = nil, | ||
imageURL: URL? = nil, | ||
privacySettings: UserPrivacySettings? = nil, | ||
role: UserRole? = nil, | ||
teamsRole: [String: String]? = nil, | ||
teamsRole: [TeamId: UserRole]? = 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.
that's fine - we don't advertise this feature for now anyway.
🔗 Issue Links
https://linear.app/stream/issue/IOS-803/unsetproperties-does-not-do-anything-in-current-user-controller
🎯 Goal
Fix
unsetProperties
not having any effect inCurrentUserController.updateUserData()
.📝 Summary
unsetProperties
not doing anything inCurrentUserController.updateUserData()
.🧪 Manual Testing Notes
Result: User's image is reset in the channel list (image in the top left corner)
☑️ Contributor Checklist
docs-content
repo