Attachment controller fixes

This commit is contained in:
Fedor Indutny 2023-08-16 19:44:33 +02:00 committed by Jamie Kyle
parent 55c96ba7ae
commit 71958f8a01

View file

@ -553,7 +553,7 @@ const WEBSOCKET_CALLS = new Set<keyof typeof URL_CALLS>([
// 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;