mirror of
https://github.com/oxen-io/session-android.git
synced 2025-06-09 11:08:33 +00:00
Fix issue with group storage IDs.
This commit is contained in:
parent
bdd48fd2df
commit
11b6394a87
@ -117,7 +117,17 @@ public final class StorageSyncHelper {
|
|||||||
|
|
||||||
for (RecipientSettings insert : inserts) {
|
for (RecipientSettings insert : inserts) {
|
||||||
storageInserts.add(StorageSyncModels.localToRemoteRecord(insert, archivedRecipients));
|
storageInserts.add(StorageSyncModels.localToRemoteRecord(insert, archivedRecipients));
|
||||||
|
|
||||||
|
switch (insert.getGroupType()) {
|
||||||
|
case NONE:
|
||||||
completeIds.add(StorageId.forContact(insert.getStorageId()));
|
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()) {
|
if (accountInsert.isPresent()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user