Trim stale capabilities from the profiles gRPC service
This commit is contained in:
parent
f2a3b8dba4
commit
33c8bbd0ce
|
@ -81,12 +81,6 @@ public class ProfileGrpcHelper {
|
||||||
@VisibleForTesting
|
@VisibleForTesting
|
||||||
static UserCapabilities buildUserCapabilities(final org.whispersystems.textsecuregcm.entities.UserCapabilities capabilities) {
|
static UserCapabilities buildUserCapabilities(final org.whispersystems.textsecuregcm.entities.UserCapabilities capabilities) {
|
||||||
return UserCapabilities.newBuilder()
|
return UserCapabilities.newBuilder()
|
||||||
.setGv1Migration(capabilities.gv1Migration())
|
|
||||||
.setSenderKey(capabilities.senderKey())
|
|
||||||
.setAnnouncementGroup(capabilities.announcementGroup())
|
|
||||||
.setChangeNumber(capabilities.changeNumber())
|
|
||||||
.setStories(capabilities.stories())
|
|
||||||
.setGiftBadges(capabilities.giftBadges())
|
|
||||||
.setPaymentActivation(capabilities.paymentActivation())
|
.setPaymentActivation(capabilities.paymentActivation())
|
||||||
.setPni(capabilities.pni())
|
.setPni(capabilities.pni())
|
||||||
.build();
|
.build();
|
||||||
|
|
|
@ -302,39 +302,14 @@ message ProfileAvatarUploadAttributes {
|
||||||
}
|
}
|
||||||
|
|
||||||
message UserCapabilities {
|
message UserCapabilities {
|
||||||
/**
|
|
||||||
* Whether all devices linked to the account support the groups v1 migration.
|
|
||||||
*/
|
|
||||||
bool gv1_migration = 1;
|
|
||||||
/**
|
|
||||||
* Whether all devices linked to the account support sender keys.
|
|
||||||
*/
|
|
||||||
bool sender_key = 2;
|
|
||||||
/**
|
|
||||||
* Whether all devices linked to the account support announcement groups
|
|
||||||
* (groups where only the admin can send messages or start calls).
|
|
||||||
*/
|
|
||||||
bool announcement_group = 3;
|
|
||||||
/**
|
|
||||||
* Whether all devices linked to the account support changing phone number.
|
|
||||||
*/
|
|
||||||
bool change_number = 4;
|
|
||||||
/**
|
|
||||||
* Whether all devices linked to the account support stories.
|
|
||||||
*/
|
|
||||||
bool stories = 5;
|
|
||||||
/**
|
|
||||||
* Whether all devices linked to the account support gift badges.
|
|
||||||
*/
|
|
||||||
bool gift_badges = 6;
|
|
||||||
/**
|
/**
|
||||||
* Whether all devices linked to the account support MobileCoin payments.
|
* Whether all devices linked to the account support MobileCoin payments.
|
||||||
*/
|
*/
|
||||||
bool payment_activation = 7;
|
bool payment_activation = 1;
|
||||||
/**
|
/**
|
||||||
* Whether all devices linked to the account support phone number privacy.
|
* Whether all devices linked to the account support phone number privacy.
|
||||||
*/
|
*/
|
||||||
bool pni = 8;
|
bool pni = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Badge {
|
message Badge {
|
||||||
|
|
Loading…
Reference in New Issue