Switch to unified timeline cache via TimelineKinds
This is a fairly large rewrite which unifies our threads, timelines and profiles. Now all timelines have a MultiSubscriber, and can be added and removed to columns just like Threads and Profiles. Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::{
|
||||
actionbar::NoteAction,
|
||||
timeline::{TimelineCache, TimelineCacheKey},
|
||||
timeline::{ThreadSelection, TimelineCache, TimelineKind},
|
||||
ui::note::NoteOptions,
|
||||
};
|
||||
|
||||
@@ -83,7 +83,7 @@ impl<'a> ThreadView<'a> {
|
||||
self.ndb,
|
||||
self.note_cache,
|
||||
&txn,
|
||||
TimelineCacheKey::Thread(root_id),
|
||||
&TimelineKind::Thread(ThreadSelection::from_root_id(root_id.to_owned())),
|
||||
)
|
||||
.get_ptr();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user