Add the ability to add suggested members after a GV1 migration.

This commit is contained in:
Greyson Parrelli
2020-11-09 08:30:58 -05:00
committed by Cody Henthorne
parent c4c32d80b2
commit d307db8a95
8 changed files with 244 additions and 16 deletions

View File

@@ -37,6 +37,7 @@ import org.whispersystems.signalservice.api.util.UuidUtil;
import java.io.Closeable;
import java.security.SecureRandom;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.HashSet;
@@ -162,6 +163,8 @@ public final class GroupDatabase extends Database {
values.putNull(FORMER_V1_MEMBERS);
databaseHelper.getWritableDatabase().update(TABLE_NAME, values, GROUP_ID + " = ?", SqlUtil.buildArgs(id));
Recipient.live(Recipient.externalGroupExact(context, id).getId()).refresh();
}
Optional<GroupRecord> getGroup(Cursor cursor) {