From a1a64dd25a8f1b749d7b0f5244ef3e2b2fc48e7a Mon Sep 17 00:00:00 2001 From: Jim Gustafson Date: Thu, 21 Nov 2024 13:24:23 -0800 Subject: [PATCH] Force relays only if remote user is not a Signal Connection --- ts/services/calling.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ts/services/calling.ts b/ts/services/calling.ts index 5e9c9d8246..541156479c 100644 --- a/ts/services/calling.ts +++ b/ts/services/calling.ts @@ -137,7 +137,7 @@ import { import { isNormalNumber } from '../util/isNormalNumber'; import type { AciString, ServiceIdString } from '../types/ServiceId'; import { isServiceIdString } from '../types/ServiceId'; -import { isInSystemContacts } from '../util/isInSystemContacts'; +import { isSignalConnection } from '../util/getSignalConnections'; import { toAdminKeyBytes } from '../util/callLinks'; import { getCallLinkAuthCredentialPresentation, @@ -3198,11 +3198,11 @@ export class CallingClass { return false; } - // If the peer is not in the user's system contacts, force IP hiding. - const isContactUntrusted = !isInSystemContacts(conversation.attributes); + // If the peer is not a Signal Connection, force IP hiding. + const isContactUntrusted = !isSignalConnection(conversation.attributes); - // proritize ice servers with IPs to avoid DNS - // only include hostname with urlsWithIps + // Prioritize ice servers with IPs to avoid DNS only include + // hostname with urlsWithIps. let iceServers = iceServerConfigToList(iceServerConfig); if (this._iceServerOverride) {