set fresh from TimelineCache

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-07-31 18:53:27 -04:00
parent 7aca39aae8
commit 8697a5cb0a

View File

@@ -221,6 +221,14 @@ impl TimelineCache {
pub fn num_timelines(&self) -> usize {
self.timelines.len()
}
pub fn set_fresh(&mut self, kind: &TimelineKind) {
let Some(tl) = self.get_mut(kind) else {
return;
};
tl.current_view_mut().freshness.set_fresh();
}
}
/// Look for new thread notes since our last fetch