mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 00:59:49 +01:00
Allow syncing additional types of messages to linked devices.
This commit is contained in:
@@ -254,6 +254,7 @@ object LinkDeviceRepository {
|
||||
append = { tempBackupFile.appendBytes(it) },
|
||||
messageBackupKey = ephemeralMessageBackupKey,
|
||||
mediaBackupEnabled = false,
|
||||
forTransfer = true,
|
||||
cancellationSignal = cancellationSignal
|
||||
)
|
||||
} catch (e: Exception) {
|
||||
@@ -268,7 +269,7 @@ object LinkDeviceRepository {
|
||||
return LinkUploadArchiveResult.BackupCreationCancelled
|
||||
}
|
||||
|
||||
when (val result = ArchiveValidator.validate(tempBackupFile, ephemeralMessageBackupKey)) {
|
||||
when (val result = ArchiveValidator.validate(tempBackupFile, ephemeralMessageBackupKey, forTransfer = true)) {
|
||||
ArchiveValidator.ValidationResult.Success -> {
|
||||
Log.d(TAG, "[createAndUploadArchive] Successfully passed validation.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user