From bb51d3657918065bd0c6ba1d712415e2298e5ed3 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Fri, 16 Oct 2020 22:30:56 +0300 Subject: [PATCH] composer: send NewJob event on submission --- src/components/mail/compose.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/components/mail/compose.rs b/src/components/mail/compose.rs index 354bbc710..34fc70dce 100644 --- a/src/components/mail/compose.rs +++ b/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.",