Fix issue with group storage IDs.

This commit is contained in:
Greyson Parrelli 2020-04-28 10:38:25 -04:00
parent bdd48fd2df
commit 11b6394a87

View File

@ -117,7 +117,17 @@ public final class StorageSyncHelper {
for (RecipientSettings insert : inserts) {
storageInserts.add(StorageSyncModels.localToRemoteRecord(insert, archivedRecipients));
switch (insert.getGroupType()) {
case NONE:
completeIds.add(StorageId.forContact(insert.getStorageId()));
break;
case SIGNAL_V1:
completeIds.add(StorageId.forGroupV1(insert.getStorageId()));
break;
default:
throw new AssertionError("Unsupported type!");
}
}
if (accountInsert.isPresent()) {