summaryrefslogtreecommitdiff
path: root/src/components/mail/listing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mail/listing.rs')
-rw-r--r--src/components/mail/listing.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/mail/listing.rs b/src/components/mail/listing.rs
index a94c1107..dc0115b5 100644
--- a/src/components/mail/listing.rs
+++ b/src/components/mail/listing.rs
@@ -93,9 +93,10 @@ impl<T> RowsState<T> {
&mut self,
thread: ThreadHash,
metadata: T,
- env_hashes: SmallVec<[EnvelopeHash; 8]>,
+ mut env_hashes: SmallVec<[EnvelopeHash; 8]>,
entry_strings: EntryStrings,
) {
+ env_hashes.dedup();
let index = self.entries.len();
self.thread_order.insert(thread, index);
self.all_threads.insert(thread);