Store announcement group capability

This commit is contained in:
AsamK 2021-09-12 13:13:58 +02:00
parent e3d5ebaa9e
commit fbafa75fe2
2 changed files with 6 additions and 1 deletions

View file

@ -134,7 +134,8 @@ public class Profile {
gv2, gv2,
storage, storage,
gv1Migration, gv1Migration,
senderKey; senderKey,
announcementGroup;
static Capability valueOfOrNull(String value) { static Capability valueOfOrNull(String value) {
try { try {

View file

@ -65,6 +65,10 @@ public class ProfileUtils {
if (encryptedProfile.getCapabilities().isSenderKey()) { if (encryptedProfile.getCapabilities().isSenderKey()) {
capabilities.add(Profile.Capability.senderKey); capabilities.add(Profile.Capability.senderKey);
} }
if (encryptedProfile.getCapabilities().isAnnouncementGroup()) {
capabilities.add(Profile.Capability.announcementGroup);
}
return capabilities; return capabilities;
} }