Browse Source

Send AccountStatusChange event on receiving mailboxes

master
Manos Pitsidianakis 2 years ago
parent
commit
ca0f37e1f3
Signed by: epilys GPG Key ID: 73627C2F690DF710
  1. 5
      src/conf/accounts.rs

5
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

Loading…
Cancel
Save