rename ImageCache -> MediaCache
Signed-off-by: kernelkind <kernelkind@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user