mirror of
https://github.com/aljazceru/notedeck.git
synced 2025-12-18 17:14:21 +01:00
make TimelineCache::notes private
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -113,7 +113,7 @@ impl TimelineCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Get and/or update the notes associated with this timeline
|
/// Get and/or update the notes associated with this timeline
|
||||||
pub fn notes<'a>(
|
fn notes<'a>(
|
||||||
&'a mut self,
|
&'a mut self,
|
||||||
ndb: &Ndb,
|
ndb: &Ndb,
|
||||||
note_cache: &mut NoteCache,
|
note_cache: &mut NoteCache,
|
||||||
|
|||||||
@@ -73,7 +73,7 @@ impl<'a, 'd> ProfileView<'a, 'd> {
|
|||||||
scroll_area = scroll_area.vertical_scroll_offset(offset);
|
scroll_area = scroll_area.vertical_scroll_offset(offset);
|
||||||
}
|
}
|
||||||
|
|
||||||
let output = scroll_area.show(ui, |ui| {
|
let output = scroll_area.show(ui, |ui| 's: {
|
||||||
let mut action = None;
|
let mut action = None;
|
||||||
let txn = Transaction::new(self.note_context.ndb).expect("txn");
|
let txn = Transaction::new(self.note_context.ndb).expect("txn");
|
||||||
let profile = self
|
let profile = self
|
||||||
@@ -85,15 +85,13 @@ impl<'a, 'd> ProfileView<'a, 'd> {
|
|||||||
if let Some(profile_view_action) = self.profile_body(ui, profile.as_ref()) {
|
if let Some(profile_view_action) = self.profile_body(ui, profile.as_ref()) {
|
||||||
action = Some(profile_view_action);
|
action = Some(profile_view_action);
|
||||||
}
|
}
|
||||||
let profile_timeline = self
|
|
||||||
|
let Some(profile_timeline) = self
|
||||||
.timeline_cache
|
.timeline_cache
|
||||||
.notes(
|
.get_mut(&TimelineKind::Profile(*self.pubkey))
|
||||||
self.note_context.ndb,
|
else {
|
||||||
self.note_context.note_cache,
|
break 's action;
|
||||||
&txn,
|
};
|
||||||
&TimelineKind::Profile(*self.pubkey),
|
|
||||||
)
|
|
||||||
.get_ptr();
|
|
||||||
|
|
||||||
profile_timeline.selected_view = tabs_ui(
|
profile_timeline.selected_view = tabs_ui(
|
||||||
ui,
|
ui,
|
||||||
|
|||||||
Reference in New Issue
Block a user