Skip to content
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

Merged
merged 6 commits into from
Nov 16, 2023

Conversation

Velin92
Copy link
Member

@Velin92 Velin92 commented Nov 15, 2023

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 message

Simulator.Screen.Recording.-.iPhone.14.-.2023-11-15.at.19.09.41.mp4

Copy link

github-actions bot commented Nov 15, 2023

Warnings
⚠️ Some of the commits are missing ticket numbers. Please consider squashing all commits that don't have a tracking number.
⚠️ You seem to have made changes to views. Please consider adding screenshots.

Generated by 🚫 Danger Swift against 52754d7

@Velin92 Velin92 marked this pull request as ready for review November 15, 2023 18:50
@Velin92 Velin92 requested a review from a team as a code owner November 15, 2023 18:50
Copy link

sonarcloud bot commented Nov 15, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link

codecov bot commented Nov 15, 2023

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (9f1092b) 69.67% compared to head (f7550c1) 69.93%.

❗ Current head f7550c1 differs from pull request most recent head 52754d7. Consider uploading reports for the commit 52754d7 to get more accurate results

Files Patch % Lines
...Screens/RoomScreen/View/Style/TimelineStyler.swift 41.37% 17 Missing ⚠️
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              
Flag Coverage Δ
unittests 54.44% <54.05%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@stefanceriu stefanceriu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff! 👍

changelog.d/2078.feature Outdated Show resolved Hide resolved
@Velin92 Velin92 merged commit 003b494 into develop Nov 16, 2023
3 checks passed
@Velin92 Velin92 deleted the mauroromito/artificial_delay_when_failing branch November 16, 2023 09:09
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.

Hitting resend on failed msg doesn’t reset its send status
2 participants