-
Notifications
You must be signed in to change notification settings - Fork 29
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
fix: avoid refetching broken assets [WPB-2826] #1890
Conversation
Build 126 failed. |
app/src/main/kotlin/com/wire/android/util/ui/WireSessionImageLoader.kt
Outdated
Show resolved
Hide resolved
Build 138 failed. |
Build (beta-debug) available here. Scroll down to Artifacts! |
Build (dev-debug) available here. Scroll down to Artifacts! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On 🔥 !
val isRetryNeeded = | ||
((painter.state as AsyncImagePainter.State.Error).result.throwable as? AssetImageException)?.isRetryNeeded ?: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice to see some tailored exceptions 💯
Build 139 succeeded. The build produced the following APK's: |
Build (beta-debug) available here. Scroll down to Artifacts! |
Build (dev-debug) available here. Scroll down to Artifacts! |
Build 140 succeeded. The build produced the following APK's: |
PR Submission Checklist for internal contributors
The PR Title
SQPIT-764
The PR Description
What's new in this PR?
Issues
Where there was issue with fetching images (not found, server issue, no internet connection), they where fetched in infinite loop
Causes (Optional)
Drop of app performance when users uses app with broken assets
Solutions
Add functionality to retry image fetching when there is connection with internet, also remove not found assets from user asset repository