&format!("Information about user {username}"), 'H');
let file = File::<ExamineUserFileType, _>::new(
- client, StaticSource::singleton(ac.id), title, None)?;
+ client, StaticSource::singleton(ac.id), title,
+ Some(FilePosition::item_top(isize::MIN)))?;
Ok(Box::new(file))
}
&format!("Information about post {}", st.id), 'H');
let file = File::<DetailedStatusFileType, _>::new(
- client, StaticSource::singleton(st.id), title, None)?;
+ client, StaticSource::singleton(st.id), title,
+ Some(FilePosition::item_top(isize::MIN)))?;
Ok(Box::new(file))
}
};
let title = ColouredString::uniform(&title, 'H');
+ // Focus the id in question, assuming we can
+ let index = ids.iter().position(|x| x == start_id)
+ .map_or(isize::MIN, |u| u as isize);
+
let file = File::<StatusFeedType, _>::new(
- client, StaticSource::vector(ids), title, None)?;
+ client, StaticSource::vector(ids), title,
+ Some(FilePosition::item_top(index as isize)))?;
Ok(Box::new(file))
}