mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Add IV to the attachment table.
This commit is contained in:
committed by
Cody Henthorne
parent
07289b417b
commit
4b47d38d78
@@ -40,6 +40,7 @@ object FakeMessageRecords {
|
||||
cdnNumber: Int = 3,
|
||||
location: String = "",
|
||||
key: String = "",
|
||||
iv: ByteArray = byteArrayOf(),
|
||||
relay: String = "",
|
||||
digest: ByteArray = byteArrayOf(),
|
||||
incrementalDigest: ByteArray = byteArrayOf(),
|
||||
@@ -67,42 +68,43 @@ object FakeMessageRecords {
|
||||
thumbnailRestoreState: AttachmentTable.ThumbnailRestoreState = AttachmentTable.ThumbnailRestoreState.NONE
|
||||
): DatabaseAttachment {
|
||||
return DatabaseAttachment(
|
||||
attachmentId,
|
||||
mmsId,
|
||||
hasData,
|
||||
hasThumbnail,
|
||||
hasArchiveThumbnail,
|
||||
contentType,
|
||||
transferProgress,
|
||||
size,
|
||||
fileName,
|
||||
Cdn.fromCdnNumber(cdnNumber),
|
||||
location,
|
||||
key,
|
||||
digest,
|
||||
incrementalDigest,
|
||||
incrementalMacChunkSize,
|
||||
fastPreflightId,
|
||||
voiceNote,
|
||||
borderless,
|
||||
videoGif,
|
||||
width,
|
||||
height,
|
||||
quote,
|
||||
caption,
|
||||
stickerLocator,
|
||||
blurHash,
|
||||
audioHash,
|
||||
transformProperties,
|
||||
displayOrder,
|
||||
uploadTimestamp,
|
||||
dataHash,
|
||||
archiveCdn,
|
||||
archiveThumbnailCdn,
|
||||
archiveMediaId,
|
||||
archiveMediaName,
|
||||
thumbnailRestoreState,
|
||||
null
|
||||
attachmentId = attachmentId,
|
||||
mmsId = mmsId,
|
||||
hasData = hasData,
|
||||
hasThumbnail = hasThumbnail,
|
||||
hasArchiveThumbnail = hasArchiveThumbnail,
|
||||
contentType = contentType,
|
||||
transferProgress = transferProgress,
|
||||
size = size,
|
||||
fileName = fileName,
|
||||
cdn = Cdn.fromCdnNumber(cdnNumber),
|
||||
location = location,
|
||||
key = key,
|
||||
iv = iv,
|
||||
digest = digest,
|
||||
incrementalDigest = incrementalDigest,
|
||||
incrementalMacChunkSize = incrementalMacChunkSize,
|
||||
fastPreflightId = fastPreflightId,
|
||||
voiceNote = voiceNote,
|
||||
borderless = borderless,
|
||||
videoGif = videoGif,
|
||||
width = width,
|
||||
height = height,
|
||||
quote = quote,
|
||||
caption = caption,
|
||||
stickerLocator = stickerLocator,
|
||||
blurHash = blurHash,
|
||||
audioHash = audioHash,
|
||||
transformProperties = transformProperties,
|
||||
displayOrder = displayOrder,
|
||||
uploadTimestamp = uploadTimestamp,
|
||||
dataHash = dataHash,
|
||||
archiveCdn = archiveCdn,
|
||||
archiveThumbnailCdn = archiveThumbnailCdn,
|
||||
archiveMediaName = archiveMediaId,
|
||||
archiveMediaId = archiveMediaName,
|
||||
thumbnailRestoreState = thumbnailRestoreState,
|
||||
uuid = null
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user