Closes #7374 Resolved issue where draft not deleted when sending mail
This commit is contained in:
parent
0b391fcead
commit
374981ef77
1 changed files with 2 additions and 3 deletions
|
|
@ -758,10 +758,8 @@ public class ComposerWindow : Gtk.Window {
|
|||
|
||||
// Sends the current message.
|
||||
private void on_send() {
|
||||
if (should_send()) {
|
||||
if (should_send())
|
||||
on_send_async.begin();
|
||||
destroy();
|
||||
}
|
||||
}
|
||||
|
||||
// Used internally by on_send()
|
||||
|
|
@ -776,6 +774,7 @@ public class ComposerWindow : Gtk.Window {
|
|||
}
|
||||
|
||||
yield delete_draft_async();
|
||||
destroy(); // Only close window after draft is deleted; this closes the drafts folder.
|
||||
}
|
||||
|
||||
// Returns the drafts folder for the current From account.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue