From e630978d308b414d3037d63eb30e6eedeef038b8 Mon Sep 17 00:00:00 2001 From: levlam Date: Sat, 6 Jul 2024 18:42:36 +0300 Subject: [PATCH] Fix linkPreviewTypeStory. --- td/telegram/WebPagesManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/WebPagesManager.cpp b/td/telegram/WebPagesManager.cpp index 3428d82c2..11f890ba6 100644 --- a/td/telegram/WebPagesManager.cpp +++ b/td/telegram/WebPagesManager.cpp @@ -1479,7 +1479,7 @@ td_api::object_ptr WebPagesManager::get_link_preview_ty if (web_page->story_full_ids_.size() == 1) { story_sender_dialog_id = web_page->story_full_ids_[0].get_dialog_id(); story_id = web_page->story_full_ids_[0].get_story_id(); - td_api::make_object( + return td_api::make_object( td_->dialog_manager_->get_chat_id_object(story_sender_dialog_id, "webPage"), story_id.get()); } else { LOG(ERROR) << "Receive telegram story " << web_page->url_ << " without story";