Fix issue with GV1 deprecation and rotate feature flag.
This commit is contained in:
parent
e42fe5349b
commit
7b3aa43217
2 changed files with 6 additions and 4 deletions
|
@ -63,8 +63,9 @@ public final class AddGroupDetailsViewModel extends ViewModel {
|
||||||
});
|
});
|
||||||
|
|
||||||
nonGv2CapableMembers = LiveDataUtil.mapAsync(membersToCheckGv2CapabilityOf, memberList -> repository.checkCapabilities(Stream.of(memberList).map(newGroupCandidate -> newGroupCandidate.getMember().getId()).toList()));
|
nonGv2CapableMembers = LiveDataUtil.mapAsync(membersToCheckGv2CapabilityOf, memberList -> repository.checkCapabilities(Stream.of(memberList).map(newGroupCandidate -> newGroupCandidate.getMember().getId()).toList()));
|
||||||
canSubmitForm = FeatureFlags.groupsV1ForcedMigration() ? LiveDataUtil.just(false)
|
canSubmitForm = LiveDataUtil.combineLatest(LiveDataUtil.combineLatest(isMms, isValidName, (mms, validName) -> mms || validName),
|
||||||
: LiveDataUtil.combineLatest(isMms, isValidName, (mms, validName) -> mms || validName);
|
nonGv2CapableMembers,
|
||||||
|
(canSubmit, nonGv2) -> canSubmit && !(FeatureFlags.groupsV1ForcedMigration() && nonGv2.size() > 0));
|
||||||
|
|
||||||
repository.resolveMembers(recipientIds, initialMembers::postValue);
|
repository.resolveMembers(recipientIds, initialMembers::postValue);
|
||||||
}
|
}
|
||||||
|
|
|
@ -60,7 +60,7 @@ public final class FeatureFlags {
|
||||||
private static final String CLIENT_EXPIRATION = "android.clientExpiration";
|
private static final String CLIENT_EXPIRATION = "android.clientExpiration";
|
||||||
public static final String DONATE_MEGAPHONE = "android.donate";
|
public static final String DONATE_MEGAPHONE = "android.donate";
|
||||||
private static final String VIEWED_RECEIPTS = "android.viewed.receipts";
|
private static final String VIEWED_RECEIPTS = "android.viewed.receipts";
|
||||||
private static final String GV1_FORCED_MIGRATE = "android.groupsV1Migration.forced";
|
private static final String GV1_FORCED_MIGRATE = "android.groupsV1Migration.forced.2";
|
||||||
private static final String SEND_VIEWED_RECEIPTS = "android.sendViewedReceipts";
|
private static final String SEND_VIEWED_RECEIPTS = "android.sendViewedReceipts";
|
||||||
private static final String CUSTOM_VIDEO_MUXER = "android.customVideoMuxer";
|
private static final String CUSTOM_VIDEO_MUXER = "android.customVideoMuxer";
|
||||||
private static final String CDS_REFRESH_INTERVAL = "cds.syncInterval.seconds";
|
private static final String CDS_REFRESH_INTERVAL = "cds.syncInterval.seconds";
|
||||||
|
@ -146,7 +146,8 @@ public final class FeatureFlags {
|
||||||
ANIMATED_STICKER_MIN_MEMORY,
|
ANIMATED_STICKER_MIN_MEMORY,
|
||||||
ANIMATED_STICKER_MIN_TOTAL_MEMORY,
|
ANIMATED_STICKER_MIN_TOTAL_MEMORY,
|
||||||
MESSAGE_PROCESSOR_ALARM_INTERVAL,
|
MESSAGE_PROCESSOR_ALARM_INTERVAL,
|
||||||
MESSAGE_PROCESSOR_DELAY
|
MESSAGE_PROCESSOR_DELAY,
|
||||||
|
GV1_FORCED_MIGRATE
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue