Do not upload long text attachments to the archive.

This commit is contained in:
Greyson Parrelli
2025-07-21 11:43:15 -04:00
parent 7295787e08
commit 6af3f2ce42
7 changed files with 57 additions and 43 deletions

View File

@@ -836,16 +836,20 @@ object BackupRepository {
var frameCount = 0L
writer.use {
val debugInfo = buildDebugInfo()
eventTimer.emit("debug-info")
writer.write(
BackupInfo(
version = VERSION,
backupTimeMs = exportState.backupTime,
mediaRootBackupKey = SignalStore.backup.mediaRootBackupKey.value.toByteString(),
firstAppVersion = SignalStore.backup.firstAppVersion,
debugInfo = buildDebugInfo()
debugInfo = debugInfo
)
)
frameCount++
eventTimer.emit("header")
// We're using a snapshot, so the transaction is more for perf than correctness
dbSnapshot.rawWritableDatabase.withinTransaction {