don't try to use other accounts to post

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2024-11-21 15:34:27 -05:00
parent 679a5afdeb
commit d15aa65bd7

View File

@@ -205,7 +205,7 @@ pub fn render_nav(col: usize, app: &mut Damus, ui: &mut egui::Ui) -> RenderNavRe
None
}
Route::ComposeNote => {
let kp = app.accounts.selected_or_first_nsec()?;
let kp = app.accounts.get_selected_account()?.to_full()?;
let draft = app.drafts.compose_mut();
let txn = nostrdb::Transaction::new(&app.ndb).expect("txn");