refactor: replace axios with fetch API and update related types (#1666)
This commit is contained in:
committed by
GitHub
parent
cfe7a2b2b3
commit
fb12f6d9d3
@@ -57,7 +57,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
||||
logger,
|
||||
linkPreviewImageThumbnailWidth,
|
||||
generateHighQualityLinkPreview,
|
||||
options: axiosOptions,
|
||||
options: httpRequestOptions,
|
||||
patchMessageBeforeSending,
|
||||
cachedGroupMetadata,
|
||||
enableRecentMessageCache,
|
||||
@@ -1077,7 +1077,7 @@ export const makeMessagesSocket = (config: SocketConfig) => {
|
||||
thumbnailWidth: linkPreviewImageThumbnailWidth,
|
||||
fetchOpts: {
|
||||
timeout: 3_000,
|
||||
...(axiosOptions || {})
|
||||
...(httpRequestOptions || {})
|
||||
},
|
||||
logger,
|
||||
uploadImage: generateHighQualityLinkPreview ? waUploadToServer : undefined
|
||||
|
||||
Reference in New Issue
Block a user