Skip to content

Conversation

JcMinarro
Copy link
Contributor

🎯 Goal

The method CoilStreamImageloader.loadAndResize() was run on the background thread to ensure any network call is not running on the UI thread. This Coil network call requires configuring a listener to perform actions after the picture is loaded, but it doesn't ensure the invocation was on the same thread, which could produce some errors if a UI component is updated there.

With this change, we ensure the callback is run on the same thread the method was called.
Fix AND-718

Copy link
Contributor

github-actions bot commented Sep 3, 2025

SDK Size Comparison 📏

SDK Before After Difference Status
stream-chat-android-client 3.21 MB 3.21 MB 0.00 MB 🟢
stream-chat-android-offline 3.43 MB 3.43 MB 0.00 MB 🟢
stream-chat-android-ui-components 10.50 MB 10.50 MB 0.00 MB 🟢
stream-chat-android-compose 12.69 MB 12.69 MB 0.00 MB 🟢

@JcMinarro JcMinarro marked this pull request as ready for review September 3, 2025 13:06
@JcMinarro JcMinarro requested a review from a team as a code owner September 3, 2025 13:06
Copy link

sonarqubecloud bot commented Sep 8, 2025

@VelikovPetar VelikovPetar merged commit ad4c540 into develop Sep 8, 2025
13 checks passed
@VelikovPetar VelikovPetar deleted the fix/coil branch September 8, 2025 08:55
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.

2 participants