From cc049065daf664da85bf98333284a53926a663b9 Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 24 Nov 2020 11:46:58 +1100 Subject: [PATCH] do not use v3 for live.apns.getsession.org PN calls --- ts/session/snode_api/onions.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ts/session/snode_api/onions.ts b/ts/session/snode_api/onions.ts index 7adfc7964..35f72633b 100644 --- a/ts/session/snode_api/onions.ts +++ b/ts/session/snode_api/onions.ts @@ -142,7 +142,8 @@ async function buildOnionCtxs( if (relayingToFinalDestination && fileServerOptions) { let target = useV2 ? '/loki/v2/lsrpc' : '/loki/v1/lsrpc'; - if (window.lokiFeatureFlags.useFileOnionRequestsV2) { + const isCallToPn = fileServerOptions?.host === 'live.apns.getsession.org'; + if (!isCallToPn && window.lokiFeatureFlags.useFileOnionRequestsV2) { target = '/loki/v3/lsrpc'; }