Allow backfill for more undownloadable attachments

This commit is contained in:
Fedor Indutny
2025-03-26 11:48:28 -07:00
committed by GitHub
parent d69887a4f9
commit 427f91f903
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 {