Send AccountStatusChange event on receiving mailboxes

pull/234/head
Manos Pitsidianakis 4 years ago
parent 843616221e
commit ca0f37e1f3
No known key found for this signature in database
GPG Key ID: 73627C2F690DF710

@ -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

Loading…
Cancel
Save