use unique id for post/reply view
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
@@ -925,13 +925,17 @@ fn render_nav(routes: Vec<Route>, timeline_ind: usize, app: &mut Damus, ui: &mut
|
|||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let note_key = note.key().unwrap();
|
||||||
|
|
||||||
let poster = app
|
let poster = app
|
||||||
.account_manager
|
.account_manager
|
||||||
.get_selected_account_index()
|
.get_selected_account_index()
|
||||||
.unwrap_or(0);
|
.unwrap_or(0);
|
||||||
|
|
||||||
let replying_to = note.pubkey();
|
let replying_to = note.pubkey();
|
||||||
ui::PostView::new(&mut app, poster, replying_to).ui(&txn, ui);
|
ui::PostView::new(&mut app, poster, replying_to)
|
||||||
|
.id_source(("post", timeline_ind, note_key))
|
||||||
|
.ui(&txn, ui);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user