@@ -5,7 +5,7 @@ use crate::{
|
||||
route::{Route, Router},
|
||||
thread::{Thread, ThreadResult, Threads},
|
||||
};
|
||||
use enostr::{NoteId, RelayPool};
|
||||
use enostr::{NoteId, Pubkey, RelayPool};
|
||||
use nostrdb::{Ndb, Transaction};
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Copy, Clone)]
|
||||
@@ -15,6 +15,12 @@ pub enum BarAction {
|
||||
OpenThread(NoteId),
|
||||
}
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct TimelineResponse {
|
||||
pub bar_action: Option<BarAction>,
|
||||
pub open_profile: Option<Pubkey>,
|
||||
}
|
||||
|
||||
pub struct NewThreadNotes {
|
||||
pub root_id: NoteId,
|
||||
pub notes: Vec<NoteRef>,
|
||||
|
||||
Reference in New Issue
Block a user