mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-26 11:51:10 +01:00
Restore a Local Backup v2
This commit is contained in:
committed by
Greyson Parrelli
parent
947ab7d48b
commit
62cf3feeaa
@@ -37,6 +37,7 @@ import org.thoughtcrime.securesms.keyvalue.SignalStore;
|
||||
import org.thoughtcrime.securesms.profiles.AvatarHelper;
|
||||
import org.thoughtcrime.securesms.recipients.RecipientId;
|
||||
import org.thoughtcrime.securesms.util.BackupUtil;
|
||||
import org.thoughtcrime.securesms.util.FeatureFlags;
|
||||
import org.thoughtcrime.securesms.util.Util;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
@@ -270,6 +271,13 @@ public class FullBackupImporter extends FullBackupBase {
|
||||
return;
|
||||
}
|
||||
|
||||
if (FeatureFlags.registrationV2()) {
|
||||
if (SignalStore.account().getKeysToIncludeInBackup().contains(keyValue.key)) {
|
||||
Log.i(TAG, "[regv2] skipping restore of " + keyValue.key);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (keyValue.blobValue != null) {
|
||||
dataSet.putBlob(keyValue.key, keyValue.blobValue.toByteArray());
|
||||
} else if (keyValue.booleanValue != null) {
|
||||
|
||||
Reference in New Issue
Block a user