add scroll_offset to NoteAction::Note
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -81,7 +81,11 @@ fn execute_note_action(
|
||||
.open(ndb, note_cache, txn, pool, &kind)
|
||||
.map(NotesOpenResult::Timeline);
|
||||
}
|
||||
NoteAction::Note { note_id, preview } => 'ex: {
|
||||
NoteAction::Note {
|
||||
note_id,
|
||||
preview,
|
||||
scroll_offset,
|
||||
} => 'ex: {
|
||||
let Ok(thread_selection) = ThreadSelection::from_note_id(ndb, note_cache, txn, note_id)
|
||||
else {
|
||||
tracing::error!("No thread selection for {}?", hex::encode(note_id.bytes()));
|
||||
|
||||
@@ -195,6 +195,7 @@ fn strip_note_action(action: NoteAction) -> Option<NoteAction> {
|
||||
NoteAction::Note {
|
||||
note_id: _,
|
||||
preview: false,
|
||||
scroll_offset: _,
|
||||
}
|
||||
) {
|
||||
return None;
|
||||
|
||||
Reference in New Issue
Block a user