|
|
|
@ -917,6 +917,12 @@ class Client::JsonChat final : public td::Jsonable {
|
|
|
|
if (chat_info->background_custom_emoji_id != 0) {
|
|
|
|
if (chat_info->background_custom_emoji_id != 0) {
|
|
|
|
object("background_custom_emoji_id", td::to_string(chat_info->background_custom_emoji_id));
|
|
|
|
object("background_custom_emoji_id", td::to_string(chat_info->background_custom_emoji_id));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (chat_info->profile_accent_color_id != -1) {
|
|
|
|
|
|
|
|
object("profile_accent_color_id", chat_info->profile_accent_color_id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (chat_info->profile_background_custom_emoji_id != 0) {
|
|
|
|
|
|
|
|
object("profile_background_custom_emoji_id", td::to_string(chat_info->profile_background_custom_emoji_id));
|
|
|
|
|
|
|
|
}
|
|
|
|
if (chat_info->has_protected_content) {
|
|
|
|
if (chat_info->has_protected_content) {
|
|
|
|
object("has_protected_content", td::JsonTrue());
|
|
|
|
object("has_protected_content", td::JsonTrue());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -5857,6 +5863,8 @@ void Client::on_update(object_ptr<td_api::Object> result) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
chat_info->accent_color_id = chat->accent_color_id_;
|
|
|
|
chat_info->accent_color_id = chat->accent_color_id_;
|
|
|
|
chat_info->background_custom_emoji_id = chat->background_custom_emoji_id_;
|
|
|
|
chat_info->background_custom_emoji_id = chat->background_custom_emoji_id_;
|
|
|
|
|
|
|
|
chat_info->profile_accent_color_id = chat->profile_accent_color_id_;
|
|
|
|
|
|
|
|
chat_info->profile_background_custom_emoji_id = chat->profile_background_custom_emoji_id_;
|
|
|
|
chat_info->has_protected_content = chat->has_protected_content_;
|
|
|
|
chat_info->has_protected_content = chat->has_protected_content_;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -5906,6 +5914,8 @@ void Client::on_update(object_ptr<td_api::Object> result) {
|
|
|
|
CHECK(chat_info->type != ChatInfo::Type::Unknown);
|
|
|
|
CHECK(chat_info->type != ChatInfo::Type::Unknown);
|
|
|
|
chat_info->accent_color_id = update->accent_color_id_;
|
|
|
|
chat_info->accent_color_id = update->accent_color_id_;
|
|
|
|
chat_info->background_custom_emoji_id = update->background_custom_emoji_id_;
|
|
|
|
chat_info->background_custom_emoji_id = update->background_custom_emoji_id_;
|
|
|
|
|
|
|
|
chat_info->profile_accent_color_id = update->profile_accent_color_id_;
|
|
|
|
|
|
|
|
chat_info->profile_background_custom_emoji_id = update->profile_background_custom_emoji_id_;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case td_api::updateChatHasProtectedContent::ID: {
|
|
|
|
case td_api::updateChatHasProtectedContent::ID: {
|
|
|
|
|