OpenWebScrobbler icon indicating copy to clipboard operation
OpenWebScrobbler copied to clipboard

Profile picture doesn't display after you change it

Open jrmajor opened this issue 5 years ago • 2 comments

Profile picture change changes also its url. After logging out and in everything works fine.

jrmajor avatar Jul 14 '18 23:07 jrmajor

Thanks for bringing it up! I'll see if it's possible to trigger an update on that case without much overhead, or at least catch it gracefully.

elamperti avatar Jul 15 '18 01:07 elamperti

Update on this: The Avatar component will show a default user icon (an astronaut) if there's no user image set.

In the case where the URL is set but the image is broken, the problem still persists. An early attempt to fix this preloading the image while showing the icon yielded tiny performance problems which didn't convince me. If we transition to a smarter component for images (maybe using lazy/Suspend?) it may be possible to catch that case.

In future updates the user data will probably be updated more often than now, reducing the window for this bug to arise.

elamperti avatar Nov 04 '18 05:11 elamperti

This will remain dependant on how often the user data is refreshed, which for performance reasons is fetched sparingly (mostly on login). I won't be changing this behavior for now. Thanks again :)

elamperti avatar Aug 28 '23 16:08 elamperti