Add td_api::premiumFeatureAppIcons.
This commit is contained in:
parent
dfe067e52e
commit
9aac7a4d0c
@ -2950,6 +2950,9 @@ premiumFeatureProfileBadge = PremiumFeature;
|
|||||||
//@description Profile photo animation on message and chat screens
|
//@description Profile photo animation on message and chat screens
|
||||||
premiumFeatureAnimatedProfilePhoto = PremiumFeature;
|
premiumFeatureAnimatedProfilePhoto = PremiumFeature;
|
||||||
|
|
||||||
|
//@description Allowed to set a premium appllication icons
|
||||||
|
premiumFeatureAppIcons = PremiumFeature;
|
||||||
|
|
||||||
|
|
||||||
//@description Contains information about a limit, increased for Premium users @type The type of the limit @default_value Default value of the limit @premium_value Value of the limit for Premium users
|
//@description Contains information about a limit, increased for Premium users @type The type of the limit @default_value Default value of the limit @premium_value Value of the limit for Premium users
|
||||||
premiumLimit type:PremiumLimitType default_value:int32 premium_value:int32 = PremiumLimit;
|
premiumLimit type:PremiumLimitType default_value:int32 premium_value:int32 = PremiumLimit;
|
||||||
|
@ -51,6 +51,9 @@ static td_api::object_ptr<td_api::PremiumFeature> get_premium_feature_object(Sli
|
|||||||
if (premium_feature == "animated_userpics") {
|
if (premium_feature == "animated_userpics") {
|
||||||
return td_api::make_object<td_api::premiumFeatureAnimatedProfilePhoto>();
|
return td_api::make_object<td_api::premiumFeatureAnimatedProfilePhoto>();
|
||||||
}
|
}
|
||||||
|
if (premium_feature == "app_icons") {
|
||||||
|
return td_api::make_object<td_api::premiumFeatureAppIcons>();
|
||||||
|
}
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -203,6 +206,8 @@ static string get_premium_source(const td_api::PremiumFeature *feature) {
|
|||||||
return "profile_badge";
|
return "profile_badge";
|
||||||
case td_api::premiumFeatureAnimatedProfilePhoto::ID:
|
case td_api::premiumFeatureAnimatedProfilePhoto::ID:
|
||||||
return "animated_userpics";
|
return "animated_userpics";
|
||||||
|
case td_api::premiumFeatureAppIcons::ID:
|
||||||
|
return "app_icons";
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
@ -297,7 +302,7 @@ void get_premium_features(Td *td, const td_api::object_ptr<td_api::PremiumSource
|
|||||||
full_split(G()->shared_config().get_option_string(
|
full_split(G()->shared_config().get_option_string(
|
||||||
"premium_features",
|
"premium_features",
|
||||||
"double_limits,more_upload,faster_download,voice_to_text,no_ads,unique_reactions,premium_stickers,"
|
"double_limits,more_upload,faster_download,voice_to_text,no_ads,unique_reactions,premium_stickers,"
|
||||||
"advanced_chat_management,profile_badge,animated_userpics"),
|
"advanced_chat_management,profile_badge,animated_userpics,app_icons"),
|
||||||
',');
|
',');
|
||||||
vector<td_api::object_ptr<td_api::PremiumFeature>> features;
|
vector<td_api::object_ptr<td_api::PremiumFeature>> features;
|
||||||
for (const auto &premium_feature : premium_features) {
|
for (const auto &premium_feature : premium_features) {
|
||||||
|
Loading…
Reference in New Issue
Block a user