onboarding: lookup profile after accounts are added
To reduce the side effects of this change, we introduce a new UnknownId action type: - SingleUnkIdAction This can be returned from functions to signal that we need to do some work to look for things. We add a `must_use` directive to this type to ensure callers handle it. Changelog-Fixed: Fix missing profiles when new accounts are added Fixes: https://github.com/damus-io/notedeck/issues/356
This commit is contained in:
@@ -84,7 +84,7 @@ pub fn render_nav(col: usize, app: &mut Damus, ui: &mut egui::Ui) -> Option<Rend
|
||||
ui,
|
||||
),
|
||||
Route::Accounts(amr) => {
|
||||
render_accounts_route(
|
||||
let action = render_accounts_route(
|
||||
ui,
|
||||
&app.ndb,
|
||||
col,
|
||||
@@ -94,6 +94,8 @@ pub fn render_nav(col: usize, app: &mut Damus, ui: &mut egui::Ui) -> Option<Rend
|
||||
&mut app.view_state.login,
|
||||
*amr,
|
||||
);
|
||||
let txn = Transaction::new(&app.ndb).expect("txn");
|
||||
action.process_action(&mut app.unknown_ids, &app.ndb, &txn);
|
||||
None
|
||||
}
|
||||
Route::Relays => {
|
||||
|
||||
Reference in New Issue
Block a user