diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 1d393d0d8..cbc819113 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -4188,6 +4188,9 @@ chatEventUsernameChanged old_username:string new_username:string = ChatEventActi //@description The chat active usernames were changed @old_usernames Previous list of active usernames @new_usernames New list of active usernames chatEventActiveUsernamesChanged old_usernames:vector new_usernames:vector = ChatEventAction; +//@description The chat accent color was changed @old_accent_color_id Previous identifier of chat accent color @new_accent_color_id New identifier of chat accent color +chatEventAccentColorChanged old_accent_color_id:int32 new_accent_color_id:int32 = ChatEventAction; + //@description The has_protected_content setting of a channel was toggled @has_protected_content New value of has_protected_content chatEventHasProtectedContentToggled has_protected_content:Bool = ChatEventAction; diff --git a/td/telegram/DialogEventLog.cpp b/td/telegram/DialogEventLog.cpp index 07eb5b8ab..c1b740eef 100644 --- a/td/telegram/DialogEventLog.cpp +++ b/td/telegram/DialogEventLog.cpp @@ -426,8 +426,12 @@ static td_api::object_ptr get_chat_event_action_object( auto action = move_tl_object_as(action_ptr); return td_api::make_object(action->new_value_); } - case telegram_api::channelAdminLogEventActionChangeColor::ID: - return nullptr; + case telegram_api::channelAdminLogEventActionChangeColor::ID: { + auto action = move_tl_object_as(action_ptr); + auto old_accent_color_id = clamp(action->prev_value_, 0, 256); + auto new_accent_color_id = clamp(action->new_value_, 0, 256); + return td_api::make_object(old_accent_color_id, new_accent_color_id); + } case telegram_api::channelAdminLogEventActionChangeBackgroundEmoji::ID: return nullptr; default: