Don't include Server.js in Interface.js

This commit is contained in:
Fedor Indutny
2025-10-02 07:52:51 -07:00
committed by GitHub
parent 4809351f5b
commit a6d4145c51
3 changed files with 13 additions and 15 deletions

View File

@@ -189,6 +189,8 @@ import type {
ServerMessageSearchResultType,
MessageCountBySchemaVersionType,
BackupAttachmentDownloadProgress,
GetMessagesBetweenOptions,
MaybeStaleCallHistory,
} from './Interface.js';
import {
AttachmentDownloadSource,
@@ -3887,12 +3889,6 @@ function getNewestMessageForConversation(
return row;
}
export type GetMessagesBetweenOptions = Readonly<{
after: { received_at: number; sent_at: number };
before: { received_at: number; sent_at: number };
includeStoryReplies: boolean;
}>;
function getMessagesBetween(
db: ReadableDB,
conversationId: string,
@@ -5238,10 +5234,6 @@ function markCallHistoryMissed(
return db.transaction(() => _markCallHistoryMissed(db, callIds))();
}
export type MaybeStaleCallHistory = Readonly<
Pick<CallHistoryDetails, 'callId' | 'peerId'>
>;
function getRecentStaleRingsAndMarkOlderMissed(
db: WritableDB
): ReadonlyArray<MaybeStaleCallHistory> {