mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-24 18:38:15 +01:00
Prepare for adding file suffixes
This commit is contained in:
@@ -2,34 +2,34 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { CallLinkRootKey } from '@signalapp/ringrtc';
|
||||
import * as Bytes from '../../Bytes.js';
|
||||
import * as Bytes from '../../Bytes.std.js';
|
||||
import type {
|
||||
CallLinkRecord,
|
||||
CallLinkStateType,
|
||||
CallLinkType,
|
||||
DefunctCallLinkType,
|
||||
} from '../../types/CallLink.js';
|
||||
} from '../../types/CallLink.std.js';
|
||||
import {
|
||||
callLinkRestrictionsSchema,
|
||||
callLinkRecordSchema,
|
||||
defunctCallLinkRecordSchema,
|
||||
} from '../../types/CallLink.js';
|
||||
import { toAdminKeyBytes } from '../../util/callLinks.js';
|
||||
} from '../../types/CallLink.std.js';
|
||||
import { toAdminKeyBytes } from '../../util/callLinks.std.js';
|
||||
import {
|
||||
callLinkToRecord,
|
||||
callLinkFromRecord,
|
||||
defunctCallLinkToRecord,
|
||||
defunctCallLinkFromRecord,
|
||||
toEpochBytes,
|
||||
} from '../../util/callLinksRingrtc.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.js';
|
||||
import { sql } from '../util.js';
|
||||
import { strictAssert } from '../../util/assert.js';
|
||||
} from '../../util/callLinksRingrtc.node.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import { strictAssert } from '../../util/assert.std.js';
|
||||
import {
|
||||
CallStatusValue,
|
||||
DirectCallStatus,
|
||||
} from '../../types/CallDisposition.js';
|
||||
import { parseStrict, parseUnknown } from '../../util/schemas.js';
|
||||
} from '../../types/CallDisposition.std.js';
|
||||
import { parseStrict, parseUnknown } from '../../util/schemas.std.js';
|
||||
|
||||
export function callLinkExists(db: ReadableDB, roomId: string): boolean {
|
||||
const [query, params] = sql`
|
||||
|
||||
@@ -7,12 +7,12 @@ import {
|
||||
CHAT_FOLDER_DELETED_POSITION,
|
||||
CHAT_FOLDER_DEFAULTS,
|
||||
ChatFolderType,
|
||||
} from '../../types/ChatFolder.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.js';
|
||||
import { sql } from '../util.js';
|
||||
import { strictAssert } from '../../util/assert.js';
|
||||
import type { CurrentChatFolder } from '../../types/CurrentChatFolders.js';
|
||||
import { isCurrentChatFolder } from '../../types/CurrentChatFolders.js';
|
||||
} from '../../types/ChatFolder.std.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import { strictAssert } from '../../util/assert.std.js';
|
||||
import type { CurrentChatFolder } from '../../types/CurrentChatFolders.std.js';
|
||||
import { isCurrentChatFolder } from '../../types/CurrentChatFolders.std.js';
|
||||
|
||||
export type ChatFolderRow = Readonly<
|
||||
Omit<
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// Copyright 2025 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { sql } from '../util.js';
|
||||
import { sql } from '../util.std.js';
|
||||
|
||||
import type { DonationReceipt } from '../../types/Donations.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.js';
|
||||
import type { DonationReceipt } from '../../types/Donations.std.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
|
||||
export function getAllDonationReceipts(db: ReadableDB): Array<DonationReceipt> {
|
||||
const donationReceipts = db
|
||||
|
||||
@@ -5,17 +5,17 @@ import type {
|
||||
GroupSendCombinedEndorsementRecord,
|
||||
GroupSendEndorsementsData,
|
||||
GroupSendMemberEndorsementRecord,
|
||||
} from '../../types/GroupSendEndorsements.js';
|
||||
} from '../../types/GroupSendEndorsements.std.js';
|
||||
import {
|
||||
groupSendEndorsementExpirationSchema,
|
||||
groupSendMemberEndorsementSchema,
|
||||
groupSendEndorsementsDataSchema,
|
||||
} from '../../types/GroupSendEndorsements.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.js';
|
||||
import { sql } from '../util.js';
|
||||
import type { AciString } from '../../types/ServiceId.js';
|
||||
import { strictAssert } from '../../util/assert.js';
|
||||
import { parseLoose, parseUnknown } from '../../util/schemas.js';
|
||||
} from '../../types/GroupSendEndorsements.std.js';
|
||||
import type { ReadableDB, WritableDB } from '../Interface.std.js';
|
||||
import { sql } from '../util.std.js';
|
||||
import type { AciString } from '../../types/ServiceId.std.js';
|
||||
import { strictAssert } from '../../util/assert.std.js';
|
||||
import { parseLoose, parseUnknown } from '../../util/schemas.std.js';
|
||||
|
||||
/**
|
||||
* We don't need to store more than one endorsement per group or per member.
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import { z } from 'zod';
|
||||
import { convertUndefinedToNull } from '../../util/dropNull.js';
|
||||
import { messageAttachmentTypeSchema } from '../../types/AttachmentDownload.js';
|
||||
import { APPLICATION_OCTET_STREAM } from '../../types/MIME.js';
|
||||
import type { MessageAttachmentDBType } from '../Interface.js';
|
||||
import { convertUndefinedToNull } from '../../util/dropNull.std.js';
|
||||
import { messageAttachmentTypeSchema } from '../../types/AttachmentDownload.std.js';
|
||||
import { APPLICATION_OCTET_STREAM } from '../../types/MIME.std.js';
|
||||
import type { MessageAttachmentDBType } from '../Interface.std.js';
|
||||
|
||||
const permissiveStringOrNull = z
|
||||
.string()
|
||||
|
||||
Reference in New Issue
Block a user