server: disable per-email counts in tags, it's breaking production
This commit is contained in:
parent
90d7f79ca0
commit
318c366d82
@ -135,23 +135,25 @@ pub fn tags(nm: &Notmuch, needs_unread: bool) -> Result<Vec<Tag>, ServerError> {
|
|||||||
unread,
|
unread,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.chain(
|
/*
|
||||||
nm.unread_recipients()?
|
.chain(
|
||||||
.into_iter()
|
nm.unread_recipients()?
|
||||||
.filter_map(|(name, unread)| {
|
.into_iter()
|
||||||
let Some(idx) = name.find('@') else {
|
.filter_map(|(name, unread)| {
|
||||||
return None;
|
let Some(idx) = name.find('@') else {
|
||||||
};
|
return None;
|
||||||
let name = format!("{}/{}", &name[idx..], &name[..idx]);
|
};
|
||||||
let bg_color = compute_color(&name);
|
let name = format!("{}/{}", &name[idx..], &name[..idx]);
|
||||||
Some(Tag {
|
let bg_color = compute_color(&name);
|
||||||
name,
|
Some(Tag {
|
||||||
fg_color: "white".to_string(),
|
name,
|
||||||
bg_color,
|
fg_color: "white".to_string(),
|
||||||
unread,
|
bg_color,
|
||||||
})
|
unread,
|
||||||
}),
|
})
|
||||||
)
|
}),
|
||||||
|
)
|
||||||
|
*/
|
||||||
.collect();
|
.collect();
|
||||||
Ok(tags)
|
Ok(tags)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user