minor cleanup

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2024-09-18 11:36:07 -04:00
parent eadef78543
commit 0a08ae92d9

View File

@@ -40,20 +40,16 @@ impl<'a> QuoteRepostView<'a> {
let id = self.id(); let id = self.id();
let quoting_note_id = self.quoting_note.id(); let quoting_note_id = self.quoting_note.id();
let post_response = { ui::PostView::new(
ui::PostView::new( self.ndb,
self.ndb, self.draft,
self.draft, crate::draft::DraftSource::Quote(quoting_note_id),
crate::draft::DraftSource::Quote(quoting_note_id), self.img_cache,
self.img_cache, self.note_cache,
self.note_cache, self.poster,
self.poster, )
) .id_source(id)
.id_source(id) .ui(self.quoting_note.txn().unwrap(), ui)
.ui(self.quoting_note.txn().unwrap(), ui)
};
post_response
} }
pub fn id_source(mut self, id: egui::Id) -> Self { pub fn id_source(mut self, id: egui::Id) -> Self {