initial postbox for testing

not sure if we want to put this here yet, but it matches the design
and will be useful for testing

Fixes: https://github.com/damus-io/notedeck/issues/110
Suggested-by: Rob
This commit is contained in:
William Casarin
2024-06-25 13:16:13 -05:00
parent a6856867a9
commit 26c4d90be3
4 changed files with 97 additions and 58 deletions

View File

@@ -1,3 +1,4 @@
use crate::draft::DraftSource;
use crate::{ui, Damus};
pub struct PostReplyView<'a> {
@@ -58,7 +59,8 @@ impl<'a> PostReplyView<'a> {
let rect_before_post = ui.min_rect();
let id = self.id();
let post_response = ui::PostView::new(self.app, poster, replying_to)
let draft_source = DraftSource::Reply(replying_to);
let post_response = ui::PostView::new(self.app, draft_source, poster)
.id_source(id)
.ui(self.note.txn().unwrap(), ui);