From d15aa65bd7a5093e8fe891122c707138c81de5c3 Mon Sep 17 00:00:00 2001 From: kernelkind Date: Thu, 21 Nov 2024 15:34:27 -0500 Subject: [PATCH] don't try to use other accounts to post Signed-off-by: kernelkind --- src/nav.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nav.rs b/src/nav.rs index 6d65a2a..2783a9b 100644 --- a/src/nav.rs +++ b/src/nav.rs @@ -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");