Skip to content

Commit

Permalink
Do not show GV1 manual migration if you don't have the capability.
Browse files Browse the repository at this point in the history
  • Loading branch information
greyson-signal committed Feb 17, 2021
1 parent e2f5fa6 commit 82107e2
Showing 1 changed file with 6 additions and 5 deletions.
Expand Up @@ -190,11 +190,12 @@ private static List<RecipientId> mapToGroupV1MigrationSuggestions(@Nullable Grou

@WorkerThread
private static boolean mapToGroupV1MigrationReminder(@Nullable GroupRecord record) {
if (record == null ||
!record.isV1Group() ||
!record.isActive() ||
!FeatureFlags.groupsV1ManualMigration() ||
FeatureFlags.groupsV1ForcedMigration() ||
if (record == null ||
!record.isV1Group() ||
!record.isActive() ||
!FeatureFlags.groupsV1ManualMigration() ||
FeatureFlags.groupsV1ForcedMigration() ||
Recipient.self().getGroupsV1MigrationCapability() != Recipient.Capability.SUPPORTED ||
!Recipient.resolved(record.getRecipientId()).isProfileSharing())
{
return false;
Expand Down

0 comments on commit 82107e2

Please sign in to comment.