File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
package/src/contexts/messageInputContext Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -967,7 +967,7 @@ export const MessageInputProvider = <
967967 response = await value . doImageUploadRequest ( file , channel ) ;
968968 } else if ( compressedUri && channel ) {
969969 if ( value . sendImageAsync ) {
970- channel . sendImage ( compressedUri , undefined , contentType ) . then ( ( res ) => {
970+ channel . sendImage ( compressedUri , file . filename , contentType ) . then ( ( res ) => {
971971 if ( asyncIds . includes ( id ) ) {
972972 // Evaluates to true if user hit send before image successfully uploaded
973973 setAsyncUploads ( ( prevAsyncUploads ) => {
@@ -986,7 +986,7 @@ export const MessageInputProvider = <
986986 }
987987 } ) ;
988988 } else {
989- response = await channel . sendImage ( compressedUri , undefined , contentType ) ;
989+ response = await channel . sendImage ( compressedUri , file . filename , contentType ) ;
990990 }
991991 }
992992
You can’t perform that action at this time.
0 commit comments