tmail-flutter
tmail-flutter copied to clipboard
[Improvement] No need to suggest sending message to drafts when it's empty
0.12.1 tested on Android, Firefox, Safari, Opera; mail.stg.lin-saas.com
- Open composer
- Click Close
- There's a suggestion to save email to Drafts. I believe it's not necessary when the user hasn't input anything in the composer
https://github.com/user-attachments/assets/f4226526-1c4b-4ea5-a4b3-fd9545ecd9ec
hi @dab246, how we can distinguish the case of it? we should to consider carefully the signature in draft too
hi @dab246, how we can distinguish the case of it? we should to consider carefully the signature in draft too
- When doing
Save As Draft. We should update the value ofEmailActionType=editDraft. Moreover, we also have the functionvalidateEmailChangeto check if the email has changed or not. So we can handle this case.
- Case 1: new composer
- Case 2: edit draft
Should add logic to compare identity to validate changes.
Also fixed at https://github.com/linagora/tmail-flutter/pull/3184