migrate to using Images instead of MediaCache directly

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-02-18 19:42:17 -05:00
parent 75a352a86f
commit 33fdf647e3
27 changed files with 101 additions and 106 deletions

View File

@@ -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(