mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-25 10:58:19 +01:00
Remove fallback CDSI implementation
This commit is contained in:
@@ -42,7 +42,6 @@ import {
|
||||
aciSchema,
|
||||
untaggedPniSchema,
|
||||
} from '../types/ServiceId';
|
||||
import type { DirectoryConfigType } from '../types/RendererConfig';
|
||||
import type { BackupPresentationHeadersType } from '../types/backups';
|
||||
import * as Bytes from '../Bytes';
|
||||
import { randomInt } from '../Crypto';
|
||||
@@ -718,7 +717,6 @@ type InitializeOptionsType = {
|
||||
contentProxyUrl: string;
|
||||
proxyUrl: string | undefined;
|
||||
version: string;
|
||||
directoryConfig: DirectoryConfigType;
|
||||
disableIPv6: boolean;
|
||||
};
|
||||
|
||||
@@ -933,7 +931,6 @@ export type CdsLookupOptionsType = Readonly<{
|
||||
e164s: ReadonlyArray<string>;
|
||||
acisAndAccessKeys?: ReadonlyArray<{ aci: AciString; accessKey: string }>;
|
||||
returnAcisWithoutUaks?: boolean;
|
||||
useLibsignal?: boolean;
|
||||
}>;
|
||||
|
||||
export type GetGroupCredentialsOptionsType = Readonly<{
|
||||
@@ -1727,7 +1724,6 @@ export function initialize({
|
||||
storageUrl,
|
||||
updatesUrl,
|
||||
resourcesUrl,
|
||||
directoryConfig,
|
||||
cdnUrlObject,
|
||||
certificateAuthority,
|
||||
contentProxyUrl,
|
||||
@@ -1835,17 +1831,10 @@ export function initialize({
|
||||
void socketManager.authenticate({ username, password });
|
||||
}
|
||||
|
||||
const { directoryUrl, directoryMRENCLAVE } = directoryConfig;
|
||||
|
||||
const cds = new CDSI(libsignalNet, {
|
||||
logger: log,
|
||||
proxyUrl,
|
||||
|
||||
url: directoryUrl,
|
||||
mrenclave: directoryMRENCLAVE,
|
||||
certificateAuthority,
|
||||
version,
|
||||
|
||||
async getAuth() {
|
||||
return (await _ajax({
|
||||
call: 'directoryAuthV2',
|
||||
@@ -4727,13 +4716,11 @@ export function initialize({
|
||||
e164s,
|
||||
acisAndAccessKeys = [],
|
||||
returnAcisWithoutUaks,
|
||||
useLibsignal,
|
||||
}: CdsLookupOptionsType): Promise<CDSResponseType> {
|
||||
return cds.request({
|
||||
e164s,
|
||||
acisAndAccessKeys,
|
||||
returnAcisWithoutUaks,
|
||||
useLibsignal,
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user