Receive rings for group calls
This commit is contained in:
parent
fe040a2873
commit
79c976668b
27 changed files with 2112 additions and 359 deletions
|
@ -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?: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue