-
Notifications
You must be signed in to change notification settings - Fork 18
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
Show all avatars in the Profile card regardless of the rating #558
Conversation
@@ -50,6 +51,7 @@ internal fun ProfileCard( | |||
avatarUrl( | |||
AvatarQueryOptions { | |||
preferredSize = sizePx | |||
rating = ImageRating.X |
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.
@pinarol Is that the rating you're using in the iOS SDK?
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.
Yep.
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.
I suggest we rename rating
to maxRating
in AvatarQueryOptions
. Currently, I think it's a bit confusing that devs may need to explicitly set the rating
to X
in a user's profile card, even though the avatar won't have this rating 99% of the time.
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.
I agree about it being confusing, but that would be a breaking change. We can't simply rename it.
As far as I'm aware the naming matches the URL query params on purpose and the docs mention how this works.
1d0ccfa
to
2111676
Compare
📲 You can test the changes from this Pull Request in Gravatar Demo by scanning the QR code below to install the corresponding build.
|
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.
LGTM
2111676
to
9a1d824
Compare
Closes #549
Description
The profile card in the QE wouldn't show avatars that are not G-rated. This fixes the problem by updating the request URL param.
Testing Steps