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;