From 71958f8a01fcd2512458a607c813b65c293f3e5b Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Wed, 16 Aug 2023 19:44:33 +0200 Subject: [PATCH] Attachment controller fixes --- ts/textsecure/WebAPI.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ts/textsecure/WebAPI.ts b/ts/textsecure/WebAPI.ts index 3fad187813..6b141693d2 100644 --- a/ts/textsecure/WebAPI.ts +++ b/ts/textsecure/WebAPI.ts @@ -553,7 +553,7 @@ const WEBSOCKET_CALLS = new Set([ // ProfileController 'profile', - // AttachmentControllerV2 + // AttachmentControllerV3 'attachmentId', // RemoteConfigController @@ -2757,6 +2757,12 @@ export function initialize({ type: 'PUT', version, data: encryptedBin, + redactUrl: () => { + const tmp = new URL(uploadLocation); + tmp.search = ''; + tmp.pathname = ''; + return `${tmp}[REDACTED]`; + }, }); return cdnKey;