rename ImageCache -> MediaCache

Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
kernelkind
2025-02-15 23:06:45 -05:00
parent bf68eb3ea8
commit 4f4a0feb8c
26 changed files with 94 additions and 94 deletions

View File

@@ -1,6 +1,6 @@
use egui::{vec2, FontId, Pos2, Rect, ScrollArea, Vec2b};
use nostrdb::{Ndb, ProfileRecord, Transaction};
use notedeck::{fonts::get_font_size, ImageCache, NotedeckTextStyle};
use notedeck::{fonts::get_font_size, MediaCache, NotedeckTextStyle};
use tracing::error;
use crate::{
@@ -13,13 +13,13 @@ use super::{profile::get_profile_url, ProfilePic};
pub struct SearchResultsView<'a> {
ndb: &'a Ndb,
txn: &'a Transaction,
img_cache: &'a mut ImageCache,
img_cache: &'a mut MediaCache,
results: &'a Vec<&'a [u8; 32]>,
}
impl<'a> SearchResultsView<'a> {
pub fn new(
img_cache: &'a mut ImageCache,
img_cache: &'a mut MediaCache,
ndb: &'a Ndb,
txn: &'a Transaction,
results: &'a Vec<&'a [u8; 32]>,
@@ -84,7 +84,7 @@ impl<'a> SearchResultsView<'a> {
fn user_result<'a>(
profile: &'a ProfileRecord<'_>,
cache: &'a mut ImageCache,
cache: &'a mut MediaCache,
index: usize,
width: f32,
) -> impl egui::Widget + 'a {