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

@@ -53,6 +53,7 @@ public class AudioSlide extends Slide {
null,
null,
null,
null,
null));
}
@@ -61,7 +62,7 @@ public class AudioSlide extends Slide {
}
public AudioSlide(Uri uri, long dataSize, String contentType, boolean voiceNote) {
super(new UriAttachment(uri, contentType, AttachmentTable.TRANSFER_PROGRESS_STARTED, dataSize, 0, 0, null, null, voiceNote, false, false, false, null, null, null, null, null));
super(new UriAttachment(uri, contentType, AttachmentTable.TRANSFER_PROGRESS_STARTED, dataSize, 0, 0, null, null, voiceNote, false, false, false, null, null, null, null, null, null));
}
public AudioSlide(Attachment attachment) {

View File

@@ -92,6 +92,11 @@ public abstract class Slide {
return attachment.fastPreflightId;
}
@Nullable
public String getQuoteTargetContentType() {
return attachment.quoteTargetContentType;
}
public long getFileSize() {
return attachment.size;
}
@@ -222,6 +227,7 @@ public abstract class Slide {
borderless,
gif,
quote,
null,
caption,
stickerLocator,
blurHash,