Allow backfill for more undownloadable attachments

This commit is contained in:
Fedor Indutny 2025-03-26 11:48:28 -07:00 committed by GitHub
commit 427f91f903
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 98 additions and 49 deletions

View file

@ -595,17 +595,18 @@ export type AttachmentBackfillAttachmentType = Readonly<
>;
export type AttachmentBackfillResponseSyncEventData = Readonly<
| {
error: Proto.SyncMessage.AttachmentBackfillResponse.Error;
targetMessage?: AddressableMessage;
targetConversation?: ConversationIdentifier;
}
| {
attachments: ReadonlyArray<AttachmentBackfillAttachmentType>;
longText: AttachmentBackfillAttachmentType | undefined;
targetMessage: AddressableMessage;
targetConversation: ConversationIdentifier;
}
{
targetMessage: AddressableMessage;
targetConversation: ConversationIdentifier;
} & (
| {
error: Proto.SyncMessage.AttachmentBackfillResponse.Error;
}
| {
attachments: ReadonlyArray<AttachmentBackfillAttachmentType>;
longText: AttachmentBackfillAttachmentType | undefined;
}
)
>;
export class AttachmentBackfillResponseSyncEvent extends ConfirmableEvent {