Cleanup stale ringing calls

This commit is contained in:
Jamie Kyle 2024-02-08 10:01:30 -08:00 committed by GitHub
parent a751eab67d
commit e69826dcc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 200 additions and 2 deletions

View file

@ -19,7 +19,10 @@ import type { BadgeType } from '../badges/types';
import type { LoggerType } from '../types/Logging';
import type { ReadStatus } from '../messages/MessageReadStatus';
import type { RawBodyRange } from '../types/BodyRange';
import type { GetMessagesBetweenOptions } from './Server';
import type {
GetMessagesBetweenOptions,
MaybeStaleCallHistory,
} from './Server';
import type { MessageTimestamps } from '../state/ducks/conversations';
import type {
CallHistoryDetails,
@ -665,6 +668,10 @@ export type DataInterface = {
conversationId: string,
eraId: string
) => Promise<boolean>;
markCallHistoryMissed(callIds: ReadonlyArray<string>): Promise<void>;
getRecentStaleRingsAndMarkOlderMissed(): Promise<
ReadonlyArray<MaybeStaleCallHistory>
>;
migrateConversationMessages: (
obsoleteId: string,
currentId: string