From 163aa97ccfe1479476aa21069b4a4583a88489e2 Mon Sep 17 00:00:00 2001 From: Vishal Narkhede Date: Wed, 29 Nov 2023 14:08:03 +0100 Subject: [PATCH 1/2] fix: add defalut contentType as multipart/form-data in sendFile --- src/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index 178626329..974d11cb5 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1034,7 +1034,7 @@ export class StreamChat, ) { - const data = addFileToFormData(uri, name, contentType); + const data = addFileToFormData(uri, name, contentType || 'multipart/form-data'); if (user != null) data.append('user', JSON.stringify(user)); return this.doAxiosRequest('postForm', url, data, { From 0991a7775597957d84c3b2e3a5b38cdd5a1452b7 Mon Sep 17 00:00:00 2001 From: Vishal Narkhede Date: Wed, 29 Nov 2023 14:19:48 +0100 Subject: [PATCH 2/2] fix: type for ChannelMemberResponse --- src/types.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/types.ts b/src/types.ts index 00065c5f9..12b855428 100644 --- a/src/types.ts +++ b/src/types.ts @@ -319,8 +319,10 @@ export type ChannelMemberResponse; user_id?: string; @@ -1745,8 +1747,10 @@ export type ChannelMembership; }; @@ -2043,6 +2047,8 @@ type GiphyVersionInfo = { height: string; url: string; width: string; + frames?: string; + size?: string; }; type GiphyVersions =