From 29764b03445452f24d0ddbe6a2e1eed51f8916d7 Mon Sep 17 00:00:00 2001 From: MeexReay Date: Wed, 18 Jun 2025 13:11:18 +0300 Subject: [PATCH] respect notifications_enabled setting --- src/chat/gui.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chat/gui.rs b/src/chat/gui.rs index f1bd044..70e59ed 100644 --- a/src/chat/gui.rs +++ b/src/chat/gui.rs @@ -930,6 +930,8 @@ fn send_notification(_: Arc, ui: &UiModel, title: &str, message: &str) } fn on_add_message(ctx: Arc, ui: &UiModel, message: String, notify: bool) { + let notify = notify && ctx.config(|c| c.notifications_enabled); + let formatting_enabled = ctx.config(|c| c.formatting_enabled); let Some(message) = (if formatting_enabled {