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

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