OpenWebScrobbler
OpenWebScrobbler copied to clipboard
Profile picture doesn't display after you change it
Profile picture change changes also its url. After logging out and in everything works fine.
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.
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.
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 :)