Don't hide sender of a story being reposted.

This commit is contained in:
levlam 2023-12-01 23:10:59 +03:00
parent d1ce646e61
commit 7728c1deb3
2 changed files with 2 additions and 9 deletions

View File

@ -3503,7 +3503,7 @@ storyListArchive = StoryList;
//@description The original story was a public story with known sender @chat_id Identifier of the chat that posted original story @story_id Story identifier of the original story
storyOriginPublicStory chat_id:int53 story_id:int32 = StoryOrigin;
//@description The original story was sent by a user, which is hidden by their privacy settings @sender_name Name of the story sender
//@description The original story was sent by an unknown user @sender_name Name of the story sender
storyOriginHiddenUser sender_name:string = StoryOrigin;

View File

@ -39,14 +39,7 @@ StoryForwardInfo::StoryForwardInfo(Td *td, telegram_api::object_ptr<telegram_api
}
void StoryForwardInfo::hide_sender_if_needed(Td *td) {
if (dialog_id_.get_type() == DialogType::User) {
auto private_forward_name = td->contacts_manager_->get_user_private_forward_name(dialog_id_.get_user_id());
if (!private_forward_name.empty()) {
dialog_id_ = {};
story_id_ = {};
sender_name_ = std::move(private_forward_name);
}
}
// currently, there is no need to hide sender client-side
}
void StoryForwardInfo::add_dependencies(Dependencies &dependencies) const {