diff options
| author | levlam <levlam@telegram.org> | 2024-07-27 21:13:49 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2024-07-27 21:13:49 +0300 |
| commit | f6e97f83a6221fadd540242b1f9c993a1b782dcd (patch) | |
| tree | f3f979b1e04aee08cfb18bb6853efb6cf9b66c06 /td/telegram/StoryContent.cpp | |
| parent | 536893f50b3c7d55dd9d6d958277f7fc084f61ab (diff) | |
Rename main_frame_timestamp to cover_frame_timestamp.
Diffstat (limited to 'td/telegram/StoryContent.cpp')
| -rw-r--r-- | td/telegram/StoryContent.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/td/telegram/StoryContent.cpp b/td/telegram/StoryContent.cpp index 8698f3c1a..9bb31f355 100644 --- a/td/telegram/StoryContent.cpp +++ b/td/telegram/StoryContent.cpp @@ -285,8 +285,8 @@ Result<unique_ptr<StoryContent>> get_input_story_content( if (input_story->duration_ < 0 || input_story->duration_ > 60.0) { return Status::Error(400, "Invalid video duration specified"); } - if (input_story->main_frame_timestamp_ < 0.0) { - return Status::Error(400, "Wrong main frame timestamp specified"); + if (input_story->cover_frame_timestamp_ < 0.0) { + return Status::Error(400, "Wrong cover timestamp specified"); } file_id = td->file_manager_->copy_file_id(file_id, FileType::VideoStory, owner_dialog_id, "get_input_story_content"); @@ -297,7 +297,7 @@ Result<unique_ptr<StoryContent>> get_input_story_content( std::move(sticker_file_ids), "story.mp4", "video/mp4", static_cast<int32>(std::ceil(input_story->duration_)), input_story->duration_, get_dimensions(720, 1280, nullptr), true, input_story->is_animation_, 0, - input_story->main_frame_timestamp_, false); + input_story->cover_frame_timestamp_, false); return make_unique<StoryContentVideo>(file_id, FileId()); } |
