listing/plain: add missing EnvelopeRemove event handler

Signed-off-by: Manos Pitsidianakis <manos@pitsidianak.is>
pull/315/head
Manos Pitsidianakis 6 months ago
parent 6506fffb94
commit 0500e451da
No known key found for this signature in database
GPG Key ID: 7729C7707F7E09D0

@ -1537,6 +1537,12 @@ impl Component for PlainListing {
self.set_dirty(true);
}
UIEvent::EnvelopeRemove(ref env_hash, _) => {
if self.rows.contains_env(*env_hash) {
self.refresh_mailbox(context, false);
self.set_dirty(true);
}
}
UIEvent::EnvelopeUpdate(ref env_hash) => {
let account = &context.accounts[&self.cursor_pos.0];
if !account.collection.contains_key(env_hash)

Loading…
Cancel
Save