Use chatPhotoFullInfo where appropriate.

GitOrigin-RevId: ffde532a24735ddac2536a448100ac8884adba83
This commit is contained in:
levlam 2020-07-06 15:34:07 +03:00
parent a7bd0c3932
commit c56f2a8c1d
4 changed files with 6 additions and 5 deletions

View File

@ -1510,7 +1510,7 @@ messageSupergroupChatCreate title:string = MessageContent;
messageChatChangeTitle title:string = MessageContent;
//@description An updated chat photo @photo New chat photo
messageChatChangePhoto photo:photo = MessageContent;
messageChatChangePhoto photo:chatPhotoFullInfo = MessageContent;
//@description A deleted chat photo
messageChatDeletePhoto = MessageContent;
@ -2131,7 +2131,7 @@ chatEventDescriptionChanged old_description:string new_description:string = Chat
chatEventUsernameChanged old_username:string new_username:string = ChatEventAction;
//@description The chat photo was changed @old_photo Previous chat photo value; may be null @new_photo New chat photo value; may be null
chatEventPhotoChanged old_photo:photo new_photo:photo = ChatEventAction;
chatEventPhotoChanged old_photo:chatPhotoFullInfo new_photo:chatPhotoFullInfo = ChatEventAction;
//@description The can_invite_users permission of a supergroup chat was toggled @can_invite_users New value of can_invite_users permission
chatEventInvitesToggled can_invite_users:Bool = ChatEventAction;

Binary file not shown.

View File

@ -4439,7 +4439,8 @@ tl_object_ptr<td_api::MessageContent> get_message_content_object(const MessageCo
}
case MessageContentType::ChatChangePhoto: {
const MessageChatChangePhoto *m = static_cast<const MessageChatChangePhoto *>(content);
return make_tl_object<td_api::messageChatChangePhoto>(get_photo_object(td->file_manager_.get(), &m->photo));
return make_tl_object<td_api::messageChatChangePhoto>(
get_chat_photo_full_info_object(td->file_manager_.get(), &m->photo));
}
case MessageContentType::ChatDeletePhoto:
return make_tl_object<td_api::messageChatDeletePhoto>();

View File

@ -27864,8 +27864,8 @@ tl_object_ptr<td_api::ChatEventAction> MessagesManager::get_chat_event_action_ob
auto file_manager = td_->file_manager_.get();
auto old_photo = get_photo(file_manager, std::move(action->prev_photo_), DialogId(channel_id));
auto new_photo = get_photo(file_manager, std::move(action->new_photo_), DialogId(channel_id));
return make_tl_object<td_api::chatEventPhotoChanged>(get_photo_object(file_manager, &old_photo),
get_photo_object(file_manager, &new_photo));
return make_tl_object<td_api::chatEventPhotoChanged>(get_chat_photo_full_info_object(file_manager, &old_photo),
get_chat_photo_full_info_object(file_manager, &new_photo));
}
case telegram_api::channelAdminLogEventActionDefaultBannedRights::ID: {
auto action = move_tl_object_as<telegram_api::channelAdminLogEventActionDefaultBannedRights>(action_ptr);