Update group table schema to support GV1->GV2 migration.

Also puts in protections to make sure we don't insert bad recipients or
groups.
This commit is contained in:
Greyson Parrelli
2020-10-20 17:13:00 -04:00
committed by Alan Evans
parent 985a220fca
commit 2d1bf33902
4 changed files with 177 additions and 57 deletions

View File

@@ -202,7 +202,7 @@ public final class GroupManager {
public static void updateSelfProfileKeyInGroup(@NonNull Context context, @NonNull GroupId.V2 groupId)
throws IOException, GroupChangeBusyException, GroupInsufficientRightsException, GroupNotAMemberException, GroupChangeFailedException
{
if (!DatabaseFactory.getGroupDatabase(context).findGroup(groupId)) {
if (!DatabaseFactory.getGroupDatabase(context).groupExists(groupId)) {
Log.i(TAG, "Group is not available locally " + groupId);
return;
}