Refactor and simplify attachment archiving.

This commit is contained in:
Greyson Parrelli
2024-09-12 10:58:48 -04:00
committed by Cody Henthorne
parent 816006c67e
commit e80ebd87fe
23 changed files with 627 additions and 481 deletions

View File

@@ -64,7 +64,8 @@ object FakeMessageRecords {
archiveMediaName: String? = null,
archiveMediaId: String? = null,
archiveThumbnailId: String? = null,
thumbnailRestoreState: AttachmentTable.ThumbnailRestoreState = AttachmentTable.ThumbnailRestoreState.NONE
thumbnailRestoreState: AttachmentTable.ThumbnailRestoreState = AttachmentTable.ThumbnailRestoreState.NONE,
archiveTransferState: AttachmentTable.ArchiveTransferState = AttachmentTable.ArchiveTransferState.NONE
): DatabaseAttachment {
return DatabaseAttachment(
attachmentId = attachmentId,
@@ -102,6 +103,7 @@ object FakeMessageRecords {
archiveMediaName = archiveMediaId,
archiveMediaId = archiveMediaName,
thumbnailRestoreState = thumbnailRestoreState,
archiveTransferState = archiveTransferState,
uuid = null
)
}