Update name of storyPrivacySettingsSelectedUsers.
This commit is contained in:
parent
9d168b847f
commit
721f0ae9e4
@ -4746,7 +4746,7 @@ storyPrivacySettingsContacts except_user_ids:vector<int53> = StoryPrivacySetting
|
||||
storyPrivacySettingsCloseFriends = StoryPrivacySettings;
|
||||
|
||||
//@description The story can be viewed by certain specified users @user_ids Identifiers of the users; always unknown and empty for non-owned stories
|
||||
storyPrivacySettingsSelectedContacts user_ids:vector<int53> = StoryPrivacySettings;
|
||||
storyPrivacySettingsSelectedUsers user_ids:vector<int53> = StoryPrivacySettings;
|
||||
|
||||
|
||||
//@class UserPrivacySettingRule @description Represents a single rule for managing user privacy settings
|
||||
|
@ -2665,7 +2665,7 @@ td_api::object_ptr<td_api::story> StoryManager::get_story_object(StoryFullId sto
|
||||
} else if (story->is_for_close_friends_) {
|
||||
privacy_settings = td_api::make_object<td_api::storyPrivacySettingsCloseFriends>();
|
||||
} else {
|
||||
privacy_settings = td_api::make_object<td_api::storyPrivacySettingsSelectedContacts>();
|
||||
privacy_settings = td_api::make_object<td_api::storyPrivacySettingsSelectedUsers>();
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -317,8 +317,8 @@ Result<UserPrivacySettingRules> UserPrivacySettingRules::get_user_privacy_settin
|
||||
result.rules_.push_back(std::move(rule));
|
||||
break;
|
||||
}
|
||||
case td_api::storyPrivacySettingsSelectedContacts::ID: {
|
||||
auto user_ids = std::move(static_cast<td_api::storyPrivacySettingsSelectedContacts &>(*settings).user_ids_);
|
||||
case td_api::storyPrivacySettingsSelectedUsers::ID: {
|
||||
auto user_ids = std::move(static_cast<td_api::storyPrivacySettingsSelectedUsers &>(*settings).user_ids_);
|
||||
result.rules_.emplace_back(td, td_api::userPrivacySettingRuleAllowUsers(std::move(user_ids)));
|
||||
break;
|
||||
}
|
||||
@ -359,10 +359,10 @@ td_api::object_ptr<td_api::StoryPrivacySettings> UserPrivacySettingRules::get_st
|
||||
return td_api::make_object<td_api::storyPrivacySettingsCloseFriends>();
|
||||
}
|
||||
if (rules_.size() == 1u && rules_[0].type_ == UserPrivacySettingRule::Type::AllowUsers) {
|
||||
return td_api::make_object<td_api::storyPrivacySettingsSelectedContacts>(
|
||||
td->contacts_manager_->get_user_ids_object(rules_[0].user_ids_, "storyPrivacySettingsSelectedContacts"));
|
||||
return td_api::make_object<td_api::storyPrivacySettingsSelectedUsers>(
|
||||
td->contacts_manager_->get_user_ids_object(rules_[0].user_ids_, "storyPrivacySettingsSelectedUsers"));
|
||||
}
|
||||
return td_api::make_object<td_api::storyPrivacySettingsSelectedContacts>();
|
||||
return td_api::make_object<td_api::storyPrivacySettingsSelectedUsers>();
|
||||
}
|
||||
|
||||
vector<telegram_api::object_ptr<telegram_api::InputPrivacyRule>> UserPrivacySettingRules::get_input_privacy_rules(
|
||||
|
@ -1189,7 +1189,7 @@ class CliClient final : public Actor {
|
||||
return td_api::make_object<td_api::storyPrivacySettingsContacts>(vector<int64>(user_ids));
|
||||
}
|
||||
if (settings[0] == 'u') {
|
||||
return td_api::make_object<td_api::storyPrivacySettingsSelectedContacts>(vector<int64>(user_ids));
|
||||
return td_api::make_object<td_api::storyPrivacySettingsSelectedUsers>(vector<int64>(user_ids));
|
||||
}
|
||||
}
|
||||
return td_api::make_object<td_api::storyPrivacySettingsContacts>();
|
||||
|
Loading…
Reference in New Issue
Block a user