mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-28 12:23:31 +01:00
Remove unused CDSH code
This commit is contained in:
@@ -48,7 +48,6 @@ import type {
|
||||
import type { CDSBase } from './cds/CDSBase';
|
||||
import { LegacyCDS } from './cds/LegacyCDS';
|
||||
import type { LegacyCDSPutAttestationResponseType } from './cds/LegacyCDS';
|
||||
import { CDSH } from './cds/CDSH';
|
||||
import { CDSI } from './cds/CDSI';
|
||||
import type WebSocketResource from './WebsocketResources';
|
||||
import { SignalService as Proto } from '../protobuf';
|
||||
@@ -1206,32 +1205,6 @@ export function initialize({
|
||||
},
|
||||
});
|
||||
}
|
||||
if (directoryType === 'cdsh') {
|
||||
const {
|
||||
directoryCDSHUrl,
|
||||
directoryCDSHPublicKey,
|
||||
directoryCDSHCodeHashes,
|
||||
} = directoryConfig;
|
||||
|
||||
cds = new CDSH({
|
||||
logger: log,
|
||||
proxyUrl,
|
||||
|
||||
url: directoryCDSHUrl,
|
||||
publicKey: directoryCDSHPublicKey,
|
||||
codeHashes: directoryCDSHCodeHashes,
|
||||
certificateAuthority,
|
||||
version,
|
||||
|
||||
async getAuth() {
|
||||
return (await _ajax({
|
||||
call: 'directoryAuthV2',
|
||||
httpType: 'GET',
|
||||
responseType: 'json',
|
||||
})) as CDSAuthType;
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
let fetchForLinkPreviews: linkPreviewFetch.FetchFn;
|
||||
if (proxyUrl) {
|
||||
|
||||
Reference in New Issue
Block a user