-
Notifications
You must be signed in to change notification settings - Fork 98
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
Artificial delay when a message fails to send #2091
Conversation
Generated by 🚫 Danger Swift against 52754d7 |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #2091 +/- ##
===========================================
+ Coverage 69.67% 69.93% +0.26%
===========================================
Files 522 522
Lines 36292 36319 +27
Branches 17552 17565 +13
===========================================
+ Hits 25286 25400 +114
+ Misses 10366 10279 -87
Partials 640 640
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Good stuff! 👍
fixes #1352
Since in poor internet conditions (or when completely offline) the resend action fails pretty much immediately there is no visual indication that it has failed again. so the idea is to create an artificial delay of about 0.5 seconds when the status transitions to
sendingFailed
to make it look like for a brief moment that is being sent to give a visual cue that the user that the app has actively tried to resend the messageSimulator.Screen.Recording.-.iPhone.14.-.2023-11-15.at.19.09.41.mp4