From 1522779b97c37f72358569450bb7bea4a60c3e0b Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 7 Nov 2023 03:24:57 +0300 Subject: [PATCH] Return unchecked accent color id for bots. --- td/telegram/ThemeManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/ThemeManager.cpp b/td/telegram/ThemeManager.cpp index 8f6eb8fc9..91edc1558 100644 --- a/td/telegram/ThemeManager.cpp +++ b/td/telegram/ThemeManager.cpp @@ -390,7 +390,8 @@ string ThemeManager::get_theme_parameters_json_string(const td_api::object_ptrauth_manager_->is_bot() || accent_color_id.is_built_in() || + accent_colors_.light_colors_.count(accent_color_id) != 0) { return accent_color_id.get(); } if (!fallback_accent_color_id.is_valid()) {