Add td_api::chatEventProfileAccentColorChanged.
This commit is contained in:
parent
6b0e161fa2
commit
c03650a920
@ -4360,6 +4360,13 @@ chatEventActiveUsernamesChanged old_usernames:vector<string> new_usernames:vecto
|
|||||||
//@new_background_custom_emoji_id New identifier of the custom emoji; 0 if none
|
//@new_background_custom_emoji_id New identifier of the custom emoji; 0 if none
|
||||||
chatEventAccentColorChanged old_accent_color_id:int32 old_background_custom_emoji_id:int64 new_accent_color_id:int32 new_background_custom_emoji_id:int64 = ChatEventAction;
|
chatEventAccentColorChanged old_accent_color_id:int32 old_background_custom_emoji_id:int64 new_accent_color_id:int32 new_background_custom_emoji_id:int64 = ChatEventAction;
|
||||||
|
|
||||||
|
//@description The chat's profile accent color or profile background custom emoji were changed
|
||||||
|
//@old_profile_accent_color_id Previous identifier of chat's profile accent color; -1 if none
|
||||||
|
//@old_profile_background_custom_emoji_id Previous identifier of the custom emoji; 0 if none
|
||||||
|
//@new_profile_accent_color_id New identifier of chat's profile accent color; -1 if none
|
||||||
|
//@new_profile_background_custom_emoji_id New identifier of the custom emoji; 0 if none
|
||||||
|
chatEventProfileAccentColorChanged old_profile_accent_color_id:int32 old_profile_background_custom_emoji_id:int64 new_profile_accent_color_id:int32 new_profile_background_custom_emoji_id:int64 = ChatEventAction;
|
||||||
|
|
||||||
//@description The has_protected_content setting of a channel was toggled @has_protected_content New value of has_protected_content
|
//@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;
|
chatEventHasProtectedContentToggled has_protected_content:Bool = ChatEventAction;
|
||||||
|
|
||||||
|
@ -440,8 +440,16 @@ static td_api::object_ptr<td_api::ChatEventAction> get_chat_event_action_object(
|
|||||||
td->theme_manager_->get_accent_color_id_object(new_peer_color.accent_color_id_, AccentColorId(channel_id)),
|
td->theme_manager_->get_accent_color_id_object(new_peer_color.accent_color_id_, AccentColorId(channel_id)),
|
||||||
new_peer_color.background_custom_emoji_id_.get());
|
new_peer_color.background_custom_emoji_id_.get());
|
||||||
}
|
}
|
||||||
case telegram_api::channelAdminLogEventActionChangeProfilePeerColor::ID:
|
case telegram_api::channelAdminLogEventActionChangeProfilePeerColor::ID: {
|
||||||
return nullptr;
|
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionChangeProfilePeerColor>(action_ptr);
|
||||||
|
auto old_peer_color = PeerColor(action->prev_value_);
|
||||||
|
auto new_peer_color = PeerColor(action->new_value_);
|
||||||
|
return td_api::make_object<td_api::chatEventProfileAccentColorChanged>(
|
||||||
|
td->theme_manager_->get_profile_accent_color_id_object(old_peer_color.accent_color_id_),
|
||||||
|
old_peer_color.background_custom_emoji_id_.get(),
|
||||||
|
td->theme_manager_->get_profile_accent_color_id_object(new_peer_color.accent_color_id_),
|
||||||
|
new_peer_color.background_custom_emoji_id_.get());
|
||||||
|
}
|
||||||
case telegram_api::channelAdminLogEventActionChangeWallpaper::ID:
|
case telegram_api::channelAdminLogEventActionChangeWallpaper::ID:
|
||||||
return nullptr;
|
return nullptr;
|
||||||
case telegram_api::channelAdminLogEventActionChangeEmojiStatus::ID:
|
case telegram_api::channelAdminLogEventActionChangeEmojiStatus::ID:
|
||||||
|
Loading…
Reference in New Issue
Block a user