From 2cbc1a82b2d5049736f70870b2495692f78a9655 Mon Sep 17 00:00:00 2001 From: trevor-signal <131492920+trevor-signal@users.noreply.github.com> Date: Tue, 13 Aug 2024 16:23:29 -0400 Subject: [PATCH] Add default timeout for initial response to attachment request --- ts/textsecure/WebAPI.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/textsecure/WebAPI.ts b/ts/textsecure/WebAPI.ts index 999fec1e6ff7..7c0d2d1e2cd8 100644 --- a/ts/textsecure/WebAPI.ts +++ b/ts/textsecure/WebAPI.ts @@ -3514,7 +3514,7 @@ export function initialize({ disableRetries: options?.disableRetries, proxyUrl, responseType: 'stream', - timeout: options?.timeout || 0, + timeout: options?.timeout ?? DEFAULT_TIMEOUT, type: 'GET', redactUrl: redactor, version,