mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Add separate column to track archive thumbnail status.
This commit is contained in:
@@ -87,19 +87,6 @@ class LogSectionRemoteBackups : LogSection {
|
||||
|
||||
if (SignalStore.backup.archiveUploadState!!.state !in setOf(ArchiveUploadProgressState.State.None, ArchiveUploadProgressState.State.UserCanceled)) {
|
||||
output.append("Pending bytes: ${SignalDatabase.attachments.getPendingArchiveUploadBytes()}\n")
|
||||
|
||||
val pendingAttachments = SignalDatabase.attachments.debugGetPendingArchiveUploadAttachments()
|
||||
if (pendingAttachments.isNotEmpty()) {
|
||||
output.append("Pending attachments:\n")
|
||||
output.append(" Count: ${pendingAttachments.size}\n")
|
||||
output.append(" Sum of Size: ${pendingAttachments.sumOf { it.size }}\n")
|
||||
output.append(" Content types:\n")
|
||||
pendingAttachments.groupBy { it.contentType }.forEach { (contentType, attachments) ->
|
||||
output.append(" $contentType: ${attachments.size}\n")
|
||||
}
|
||||
} else {
|
||||
output.append("Pending attachments: None!\n")
|
||||
}
|
||||
}
|
||||
} else {
|
||||
output.append("None\n")
|
||||
|
||||
Reference in New Issue
Block a user