Call link call history

This commit is contained in:
ayumi-signal 2024-04-01 12:19:35 -07:00 committed by GitHub
parent ed940f6f83
commit 00d6379bae
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 1124 additions and 204 deletions

View file

@ -30,6 +30,7 @@ import type {
CallHistoryGroup,
CallHistoryPagination,
} from '../types/CallDisposition';
import type { CallLinkType, CallLinkRestrictions } from '../types/CallLink';
export type AdjacentMessagesByConversationOptionsType = Readonly<{
conversationId: string;
@ -696,6 +697,16 @@ export type DataInterface = {
getRecentStaleRingsAndMarkOlderMissed(): Promise<
ReadonlyArray<MaybeStaleCallHistory>
>;
callLinkExists(roomId: string): Promise<boolean>;
getAllCallLinks: () => Promise<ReadonlyArray<CallLinkType>>;
insertCallLink(callLink: CallLinkType): Promise<void>;
updateCallLinkState(
roomId: string,
name: string,
restrictions: CallLinkRestrictions,
expiration: number | null,
revoked: boolean
): Promise<void>;
migrateConversationMessages: (
obsoleteId: string,
currentId: string