Migrate quotes to have a separate quoteTargetContentType.

This commit is contained in:
Greyson Parrelli
2025-08-29 15:39:51 -04:00
parent 631b51baf2
commit 662404d335
45 changed files with 435 additions and 132 deletions

View File

@@ -388,6 +388,7 @@ class AttachmentTableTest {
stickerLocator = null,
gif = false,
quote = false,
quoteTargetContentType = null,
uuid = UUID.randomUUID(),
fileName = null
)

View File

@@ -670,7 +670,9 @@ class AttachmentTableTest_deduping {
caption = null,
stickerLocator = null,
blurHash = null,
uuid = UUID.randomUUID()
uuid = UUID.randomUUID(),
quote = false,
quoteTargetContentType = null
)
),
quoteAttachment = emptyList()

View File

@@ -19,6 +19,7 @@ object UriAttachmentBuilder {
borderless: Boolean = false,
videoGif: Boolean = false,
quote: Boolean = false,
quoteTargetContentType: String? = null,
caption: String? = null,
stickerLocator: StickerLocator? = null,
blurHash: BlurHash? = null,
@@ -39,6 +40,7 @@ object UriAttachmentBuilder {
borderless = borderless,
videoGif = videoGif,
quote = quote,
quoteTargetContentType = quoteTargetContentType,
caption = caption,
stickerLocator = stickerLocator,
blurHash = blurHash,

View File

@@ -705,7 +705,8 @@ class SyncMessageProcessorTest_synchronizeDeleteForMe {
archiveCdn = this.archiveCdn,
thumbnailRestoreState = this.thumbnailRestoreState,
archiveTransferState = this.archiveTransferState,
uuid = uuid
uuid = uuid,
quoteTargetContentType = this.quoteTargetContentType
)
}