Add message schema version section to internal settings

This commit is contained in:
trevor-signal 2025-06-02 17:20:06 -04:00 committed by GitHub
commit 46bf933e72
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 197 additions and 9 deletions

View file

@ -548,6 +548,11 @@ export enum AttachmentDownloadSource {
BACKFILL = 'backfill',
}
export type MessageCountBySchemaVersionType = Array<{
schemaVersion: number;
count: number;
}>;
export const MESSAGE_ATTACHMENT_COLUMNS = [
'messageId',
'conversationId',
@ -888,6 +893,11 @@ type ReadableInterface = {
getAttachmentReferencesForMessages: (
messageIds: Array<string>
) => Array<MessageAttachmentDBType>;
getMessageCountBySchemaVersion: () => MessageCountBySchemaVersionType;
getMessageSampleForSchemaVersion: (
version: number
) => Array<MessageAttributesType>;
};
type WritableInterface = {