- 
                Notifications
    You must be signed in to change notification settings 
- Fork 101
TF-3150 Fix cancel sending email not work as expected #3186
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
base: master
Are you sure you want to change the base?
TF-3150 Fix cancel sending email not work as expected #3186
Conversation
| This PR has been deployed to https://linagora.github.io/tmail-flutter/3186. | 
        
          
                lib/features/composer/domain/usecases/create_new_and_save_email_to_drafts_interactor.dart
              
                Outdated
          
            Show resolved
            Hide resolved
        
              
          
                lib/features/composer/domain/usecases/create_new_and_send_email_interactor.dart
              
                Outdated
          
            Show resolved
            Hide resolved
        
      e143848    to
    df7c151      
    Compare
  
    | 
 Reproduce:
 | 
6e41e80    to
    bd63898      
    Compare
  
    | 
 Fixed. 
 Screen.Recording.2024-10-21.at.16.12.51.mov | 
bd63898    to
    030a01b      
    Compare
  
    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.
from my point of view, should have one more time for user retry in case of timeout (maybe we should increase timeout). After that, let user know about the problem
| 
 IMO, We don't need to, because our timeout is currently  | 
| onConfirmAction: () { | ||
| _sendButtonState = ButtonState.enabled; | ||
| popBack(); | ||
| _handleSendMessages(context: context); | 
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.
What happens in this case if send message take very long time to process?
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.
We have timeout the first time. If the user still wants to send. We will continue to maintain until error occurs or timeout from the server.
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.
To be safe. Please add timeout with one minute when user try it again.
Issue
#3150
Resolved
sending-email.mov
saving-email.mov
send-mobile.webm
save-mobile.webm