add preview flag to NoteAction

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind committed 2025-06-22 16:03:09 -04:00
1 parent b3569e90d6
commit 87b4b5fc70
5 files changed
+30 -9

No files matched your search

+10 -1
View File
@@ -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),