From ca0f37e1f362dd70a7b9c06cbe1ff11064bdb114 Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Wed, 26 Aug 2020 19:59:27 +0300 Subject: [PATCH] Send AccountStatusChange event on receiving mailboxes --- src/conf/accounts.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/conf/accounts.rs b/src/conf/accounts.rs index c8616a56..16e3b496 100644 --- a/src/conf/accounts.rs +++ b/src/conf/accounts.rs @@ -1455,6 +1455,11 @@ impl Account { match self.active_jobs.remove(job_id).unwrap() { JobRequest::Mailboxes(_, ref mut chan) => { if let Some(mailboxes) = chan.try_recv().unwrap() { + self.sender + .send(ThreadEvent::UIEvent(UIEvent::AccountStatusChange( + self.hash, + ))) + .unwrap(); if let Err(err) = mailboxes.and_then(|mailboxes| self.init(mailboxes)) { if err.kind.is_authentication() { self.sender