mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Store announcement group capability
This commit is contained in:
parent
e3d5ebaa9e
commit
fbafa75fe2
2 changed files with 6 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue