migrate to using Images instead of MediaCache directly
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -4,7 +4,7 @@ use crate::{
|
||||
};
|
||||
use egui::{Label, RichText, Sense};
|
||||
use nostrdb::{Ndb, Note, NoteReply, Transaction};
|
||||
use notedeck::{MediaCache, NoteCache};
|
||||
use notedeck::{Images, NoteCache};
|
||||
|
||||
#[must_use = "Please handle the resulting note action"]
|
||||
pub fn reply_desc(
|
||||
@@ -12,7 +12,7 @@ pub fn reply_desc(
|
||||
txn: &Transaction,
|
||||
note_reply: &NoteReply,
|
||||
ndb: &Ndb,
|
||||
img_cache: &mut MediaCache,
|
||||
img_cache: &mut Images,
|
||||
note_cache: &mut NoteCache,
|
||||
note_options: NoteOptions,
|
||||
) -> Option<NoteAction> {
|
||||
@@ -29,7 +29,7 @@ pub fn reply_desc(
|
||||
// note link renderer helper
|
||||
let note_link = |ui: &mut egui::Ui,
|
||||
note_cache: &mut NoteCache,
|
||||
img_cache: &mut MediaCache,
|
||||
img_cache: &mut Images,
|
||||
text: &str,
|
||||
note: &Note<'_>| {
|
||||
let r = ui.add(
|
||||
|
||||
Reference in New Issue
Block a user