mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-18 07:36:00 +01:00
Reuse recent CDN locators
Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
@@ -804,6 +804,16 @@ strictAssert(
|
||||
'attachment_columns must match DB fields type'
|
||||
);
|
||||
|
||||
export type ExistingAttachmentUploadData = {
|
||||
cdnKey: string;
|
||||
cdnNumber: number;
|
||||
digest: string;
|
||||
key: string;
|
||||
uploadTimestamp: number;
|
||||
incrementalMac: string | null;
|
||||
chunkSize: number | null;
|
||||
};
|
||||
|
||||
export type ExistingAttachmentData = Pick<
|
||||
MessageAttachmentDBType,
|
||||
| 'version'
|
||||
@@ -1085,6 +1095,10 @@ type ReadableInterface = {
|
||||
version: number
|
||||
) => Array<MessageAttributesType>;
|
||||
|
||||
getMostRecentAttachmentUploadData: (
|
||||
plaintextHash: string
|
||||
) => ExistingAttachmentUploadData | undefined;
|
||||
|
||||
__dangerouslyRunAbitraryReadOnlySqlQuery: (
|
||||
readOnlySqlQuery: string
|
||||
) => ReadonlyArray<RowType<object>>;
|
||||
|
||||
Reference in New Issue
Block a user