mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Inline manual group migration feature flag.
This commit is contained in:
@@ -86,11 +86,6 @@ public final class GroupsV1MigrationUtil {
|
||||
throw new InvalidMigrationStateException();
|
||||
}
|
||||
|
||||
if (forced && !FeatureFlags.groupsV1ManualMigration()) {
|
||||
Log.w(TAG, "Manual migration is not enabled! Skipping.");
|
||||
throw new InvalidMigrationStateException();
|
||||
}
|
||||
|
||||
List<Recipient> registeredMembers = RecipientUtil.getEligibleForSending(groupRecipient.getParticipants());
|
||||
|
||||
if (RecipientUtil.ensureUuidsAreAvailable(context, registeredMembers)) {
|
||||
|
||||
@@ -129,12 +129,10 @@ public class ManageGroupViewModel extends ViewModel {
|
||||
recipient -> {
|
||||
boolean showLegacyInfo = recipient.requireGroupId().isV1();
|
||||
|
||||
if (showLegacyInfo && FeatureFlags.groupsV1ManualMigration() && recipient.getParticipants().size() > FeatureFlags.groupLimits().getHardLimit()) {
|
||||
if (showLegacyInfo && recipient.getParticipants().size() > FeatureFlags.groupLimits().getHardLimit()) {
|
||||
return GroupInfoMessage.LEGACY_GROUP_TOO_LARGE;
|
||||
} else if (showLegacyInfo && FeatureFlags.groupsV1ManualMigration()) {
|
||||
return GroupInfoMessage.LEGACY_GROUP_UPGRADE;
|
||||
} else if (showLegacyInfo) {
|
||||
return GroupInfoMessage.LEGACY_GROUP_LEARN_MORE;
|
||||
return GroupInfoMessage.LEGACY_GROUP_UPGRADE;
|
||||
} else if (groupId.isMms()) {
|
||||
return GroupInfoMessage.MMS_WARNING;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user