accounts.rs: send EnvelopeUpdate event after self.collection.update_flags()

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/329/head
Manos Pitsidianakis 5 months ago
parent 97eb636375
commit 3691cd2962
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

@ -1939,12 +1939,11 @@ impl Account {
drop(env_lck);
self.update_cached_env(env, None);
}
self.main_loop_handler
.send(ThreadEvent::UIEvent(UIEvent::EnvelopeUpdate(env_hash)));
}
for env_hash in env_hashes.iter() {
self.collection.update_flags(env_hash, *mailbox_hash);
self.main_loop_handler
.send(ThreadEvent::UIEvent(UIEvent::EnvelopeUpdate(env_hash)));
}
}
Err(_) | Ok(None) => {}

Loading…
Cancel
Save