Skip to content
Snippets Groups Projects
Commit 33c8bbd0 authored by Jon Chambers's avatar Jon Chambers Committed by Jon Chambers
Browse files

Trim stale capabilities from the profiles gRPC service

parent f2a3b8db
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
......@@ -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 {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment