summaryrefslogtreecommitdiffstats
path: root/ui/src/components/mail/listing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ui/src/components/mail/listing.rs')
-rw-r--r--ui/src/components/mail/listing.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/src/components/mail/listing.rs b/ui/src/components/mail/listing.rs
index 3522f275..8c16ac82 100644
--- a/ui/src/components/mail/listing.rs
+++ b/ui/src/components/mail/listing.rs
@@ -500,11 +500,13 @@ impl Listing {
) {
match context.accounts[index].status(entries[&folder_idx].hash()) {
Ok(_) => {
- let count = context.accounts[index][entries[&folder_idx].hash()]
+ let account = &context.accounts[index];
+ let count = account[entries[&folder_idx].hash()]
.as_ref()
.unwrap()
- .collection
- .values()
+ .envelopes
+ .iter()
+ .map(|h| &account.collection[&h])
.filter(|e| !e.is_seen())
.count();
let len = s.len();