add preview flag to NoteAction
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -18,7 +18,7 @@ pub enum NoteAction {
|
||||
Profile(Pubkey),
|
||||
|
||||
/// User has clicked a note link
|
||||
Note(NoteId),
|
||||
Note { note_id: NoteId, preview: bool },
|
||||
|
||||
/// User has selected some context option
|
||||
Context(ContextSelection),
|
||||
@@ -30,6 +30,15 @@ pub enum NoteAction {
|
||||
Media(MediaAction),
|
||||
}
|
||||
|
||||
impl NoteAction {
|
||||
pub fn note(id: NoteId) -> NoteAction {
|
||||
NoteAction::Note {
|
||||
note_id: id,
|
||||
preview: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Clone)]
|
||||
pub enum ZapAction {
|
||||
Send(ZapTargetAmount),
|
||||
|
||||
Reference in New Issue
Block a user