mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 19:08:04 +01:00
Use @signalapp/sqlcipher
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
// Copyright 2020 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import type { Database } from '@signalapp/better-sqlite3';
|
||||
import type { Database } from '@signalapp/sqlcipher';
|
||||
import type { ReadonlyDeep } from 'type-fest';
|
||||
import type {
|
||||
ConversationAttributesType,
|
||||
@@ -236,6 +236,13 @@ export type SentProtoType = {
|
||||
urgent: boolean;
|
||||
hasPniSignatureMessage: boolean;
|
||||
};
|
||||
export type SentProtoDBType = {
|
||||
contentHint: number;
|
||||
proto: Uint8Array;
|
||||
timestamp: number;
|
||||
urgent: number;
|
||||
hasPniSignatureMessage: number;
|
||||
};
|
||||
export type SentProtoWithMessageIdsType = SentProtoType & {
|
||||
messageIds: Array<string>;
|
||||
};
|
||||
@@ -676,14 +683,14 @@ type ReadableInterface = {
|
||||
) => Array<MessageType>;
|
||||
|
||||
getUnprocessedCount: () => number;
|
||||
getUnprocessedById: (id: string) => UnprocessedType | undefined;
|
||||
|
||||
getAttachmentDownloadJob(
|
||||
// Test-only
|
||||
_getAttachmentDownloadJob(
|
||||
job: Pick<
|
||||
AttachmentDownloadJobType,
|
||||
'messageId' | 'attachmentType' | 'digest'
|
||||
>
|
||||
): AttachmentDownloadJobType;
|
||||
): AttachmentDownloadJobType | undefined;
|
||||
|
||||
getBackupCdnObjectMetadata: (
|
||||
mediaId: string
|
||||
|
||||
Reference in New Issue
Block a user