fix: remove avatars downloading without new ui

This commit is contained in:
MeexReay 2025-08-31 14:29:21 +03:00
parent b501c30ca3
commit 85d63ff9b2

View File

@ -840,7 +840,11 @@ fn setup(_: &Application, ctx: Arc<Context>, ui: UiModel) {
} }
} }
}); });
if ctx.config(|o| !o.new_ui_enabled) {
return;
}
thread::spawn(move || { thread::spawn(move || {
for message in messages.iter() { for message in messages.iter() {
let Some(avatar_url) = grab_avatar(message) else { continue }; let Some(avatar_url) = grab_avatar(message) else { continue };