mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
Handle send cancelled
This commit is contained in:
@@ -487,9 +487,10 @@ public class ServiceSend extends ServiceBase implements SharedPreferences.OnShar
|
||||
private void onSend(EntityMessage message) throws MessagingException, IOException {
|
||||
DB db = DB.getInstance(this);
|
||||
|
||||
// Check if cancelled by user or by errors
|
||||
EntityOperation operation = db.operation().getOperation(message.id, EntityOperation.SEND);
|
||||
if (operation == null)
|
||||
throw new IllegalArgumentException("Send cancelled");
|
||||
return;
|
||||
|
||||
// Mark attempt
|
||||
if (message.last_attempt == null) {
|
||||
|
||||
Reference in New Issue
Block a user