From fbafa75fe258026b35bcbc63d1a67503c48e574e Mon Sep 17 00:00:00 2001 From: AsamK Date: Sun, 12 Sep 2021 13:13:58 +0200 Subject: [PATCH] Store announcement group capability --- .../org/asamk/signal/manager/storage/recipients/Profile.java | 3 ++- .../main/java/org/asamk/signal/manager/util/ProfileUtils.java | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/src/main/java/org/asamk/signal/manager/storage/recipients/Profile.java b/lib/src/main/java/org/asamk/signal/manager/storage/recipients/Profile.java index 87828953..d61a81b5 100644 --- a/lib/src/main/java/org/asamk/signal/manager/storage/recipients/Profile.java +++ b/lib/src/main/java/org/asamk/signal/manager/storage/recipients/Profile.java @@ -134,7 +134,8 @@ public class Profile { gv2, storage, gv1Migration, - senderKey; + senderKey, + announcementGroup; static Capability valueOfOrNull(String value) { try { diff --git a/lib/src/main/java/org/asamk/signal/manager/util/ProfileUtils.java b/lib/src/main/java/org/asamk/signal/manager/util/ProfileUtils.java index f6f76c2c..7ceb07f6 100644 --- a/lib/src/main/java/org/asamk/signal/manager/util/ProfileUtils.java +++ b/lib/src/main/java/org/asamk/signal/manager/util/ProfileUtils.java @@ -65,6 +65,10 @@ public class ProfileUtils { if (encryptedProfile.getCapabilities().isSenderKey()) { capabilities.add(Profile.Capability.senderKey); } + if (encryptedProfile.getCapabilities().isAnnouncementGroup()) { + capabilities.add(Profile.Capability.announcementGroup); + } + return capabilities; }