From 85d63ff9b2375a9f8b6fed2df0fe64d6cfcbcd76 Mon Sep 17 00:00:00 2001 From: MeexReay Date: Sun, 31 Aug 2025 14:29:21 +0300 Subject: [PATCH] fix: remove avatars downloading without new ui --- src/chat/gui.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/chat/gui.rs b/src/chat/gui.rs index 632a541..a65b3e4 100644 --- a/src/chat/gui.rs +++ b/src/chat/gui.rs @@ -840,7 +840,11 @@ fn setup(_: &Application, ctx: Arc, 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 };