/v3/profiles/... response,Profile.avatarUrl always gives the primary email's avatar even if you make the query with a secondary email. From the backend perspective secondary emails don’t have profiles, they just redirect to primary email’s profile. This causes us to show wrong avatar in the profile view.
So let's calculate the avatar identifier based on the email rather than taking from the profile response.
/v3/profiles/...
response,Profile.avatarUrl
always gives the primary email's avatar even if you make the query with a secondary email. From the backend perspective secondary emails don’t have profiles, they just redirect to primary email’s profile. This causes us to show wrong avatar in the profile view.So let's calculate the avatar identifier based on the email rather than taking from the profile response.