Browse Source

composer: send NewJob event on submission

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
bb51d36579
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 5
      src/components/mail/compose.rs

5
src/components/mail/compose.rs

@ -887,6 +887,11 @@ impl Component for Composer {
) {
Ok(job) => {
let handle = context.job_executor.spawn_blocking(job);
context
.replies
.push_back(UIEvent::StatusEvent(StatusEvent::NewJob(
handle.job_id,
)));
self.mode = ViewMode::WaitingForSendResult(
UIDialog::new(
"Waiting for confirmation.. The tab will close automatically on successful submission.",

Loading…
Cancel
Save