Fix compilation error with old compilers.

This commit is contained in:
levlam 2023-05-22 16:00:14 +03:00
parent 9756d174ee
commit 89c47026e0

View File

@ -387,7 +387,7 @@ Result<Photo> create_photo(FileManager *file_manager, FileId file_id, PhotoSize
photo.photos.push_back(std::move(input_photo_size)); photo.photos.push_back(std::move(input_photo_size));
photo.has_stickers = !sticker_file_ids.empty(); photo.has_stickers = !sticker_file_ids.empty();
photo.sticker_file_ids = std::move(sticker_file_ids); photo.sticker_file_ids = std::move(sticker_file_ids);
return photo; return std::move(photo);
} }
tl_object_ptr<td_api::photo> get_photo_object(FileManager *file_manager, const Photo &photo) { tl_object_ptr<td_api::photo> get_photo_object(FileManager *file_manager, const Photo &photo) {