diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-06-23 17:23:42 +0300 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-06-23 20:11:04 +0300 |
commit | bfbaf3d61721d03738366dee2f5b3c768b4b7a36 (patch) | |
tree | 4aee449413712ac0ab50351125dbb7227a52fe30 /src/components/mail/listing/compact.rs | |
parent | efb06be09b274a5140002a77edd5500368d4cba6 (diff) |
Utilize EnvelopeRemove events
EnvelopeRemove events were not ever used in the UI
Diffstat (limited to 'src/components/mail/listing/compact.rs')
-rw-r--r-- | src/components/mail/listing/compact.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/mail/listing/compact.rs b/src/components/mail/listing/compact.rs index 234711cf..c4f48252 100644 --- a/src/components/mail/listing/compact.rs +++ b/src/components/mail/listing/compact.rs @@ -1470,6 +1470,12 @@ impl Component for CompactListing { self.view .process_event(&mut UIEvent::EnvelopeRename(*old_hash, *new_hash), context); } + UIEvent::EnvelopeRemove(ref _env_hash, ref thread_hash) => { + if self.order.contains_key(thread_hash) { + self.refresh_mailbox(context, false); + self.set_dirty(true); + } + } UIEvent::EnvelopeUpdate(ref env_hash) => { let account = &context.accounts[self.cursor_pos.0]; let threads = &account.collection.threads[&self.cursor_pos.1]; |