Receive rings for group calls

This commit is contained in:
Evan Hahn 2021-08-20 11:06:15 -05:00 committed by GitHub
parent fe040a2873
commit 79c976668b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 2112 additions and 359 deletions

View file

@ -32,6 +32,7 @@ import { assert } from '../util/assert';
import { cleanDataForIpc } from './cleanDataForIpc';
import { ReactionType } from '../types/Reactions';
import { ConversationColorType, CustomColorType } from '../types/Colors';
import type { ProcessGroupCallRingRequestResult } from '../types/Calling';
import {
ConversationModelCollectionType,
@ -262,6 +263,10 @@ const dataInterface: ClientInterface = {
insertJob,
deleteJob,
processGroupCallRingRequest,
processGroupCallRingCancelation,
cleanExpiredGroupCallRings,
getStatisticsForLogging,
// Test-only
@ -1611,6 +1616,20 @@ function deleteJob(id: string): Promise<void> {
return channels.deleteJob(id);
}
function processGroupCallRingRequest(
ringId: bigint
): Promise<ProcessGroupCallRingRequestResult> {
return channels.processGroupCallRingRequest(ringId);
}
function processGroupCallRingCancelation(ringId: bigint): Promise<void> {
return channels.processGroupCallRingCancelation(ringId);
}
async function cleanExpiredGroupCallRings(): Promise<void> {
await channels.cleanExpiredGroupCallRings();
}
async function updateAllConversationColors(
conversationColor?: ConversationColorType,
customColorData?: {