Skip to content
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

Gravatar Image Issues #21672

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from

Conversation

Akshaykomar890
Copy link
Contributor

@Akshaykomar890 Akshaykomar890 commented Feb 7, 2025

Working on #21415

I pushed a fix for the Gravatar URL issue, but the image still doesn't load dynamically when using accountStore.account in meFragment.kt

I updated the code like this in meFragment.kt to load Gravatar based on email:
val email = defaultAccount.email
val avatarUrl = meGravatarLoader.constructGravatarUrl(email)

// Initially loading with null, then updating with the constructed URL
loadAvatar(null)
loadAvatar(avatarUrl)

However, it works fine when I pass my email directly in MeGravatarLoader.kt, I tested it by passing my email directly inside constructGravatarUrl, and it loads the image correctly

So it seems like accountStore.account.email is not returning the expected value.

Could you check my PR and help me debug this issue?

changes made file:

WordPress/src/main/java/org/wordpress/android/ui/main/MeFragment.kt
WordPress/src/main/java/org/wordpress/android/ui/main/utils/MeGravatarLoader.kt

Working on wordpress-mobile#21415

I pushed a fix for the Gravatar URL issue, but the image still doesn't load dynamically when using accountStore.account.email. However, it works fine when I pass my email directly.
Copy link

sonarqubecloud bot commented Feb 7, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
1 Security Hotspot

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant