Trim stale capabilities from the profiles gRPC service

This commit is contained in:
Jon Chambers 2023-10-10 10:31:28 -04:00 committed by Jon Chambers
parent f2a3b8dba4
commit 33c8bbd0ce
2 changed files with 2 additions and 33 deletions

View File

@ -81,12 +81,6 @@ public class ProfileGrpcHelper {
@VisibleForTesting
static UserCapabilities buildUserCapabilities(final org.whispersystems.textsecuregcm.entities.UserCapabilities capabilities) {
return UserCapabilities.newBuilder()
.setGv1Migration(capabilities.gv1Migration())
.setSenderKey(capabilities.senderKey())
.setAnnouncementGroup(capabilities.announcementGroup())
.setChangeNumber(capabilities.changeNumber())
.setStories(capabilities.stories())
.setGiftBadges(capabilities.giftBadges())
.setPaymentActivation(capabilities.paymentActivation())
.setPni(capabilities.pni())
.build();

View File

@ -302,39 +302,14 @@ message ProfileAvatarUploadAttributes {
}
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.
*/
bool payment_activation = 7;
bool payment_activation = 1;
/**
* Whether all devices linked to the account support phone number privacy.
*/
bool pni = 8;
bool pni = 2;
}
message Badge {