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 @@ -961,7 +961,7 @@ export const MessageInputProvider = <
961961 response = await value . doImageUploadRequest ( file , channel ) ;
962962 } else if ( compressedUri && channel ) {
963963 if ( value . sendImageAsync ) {
964- channel . sendImage ( compressedUri , undefined , contentType ) . then ( ( res ) => {
964+ channel . sendImage ( compressedUri , file . filename , contentType ) . then ( ( res ) => {
965965 if ( asyncIds . includes ( id ) ) {
966966 // Evaluates to true if user hit send before image successfully uploaded
967967 setAsyncUploads ( ( prevAsyncUploads ) => {
@@ -980,7 +980,7 @@ export const MessageInputProvider = <
980980 }
981981 } ) ;
982982 } else {
983- response = await channel . sendImage ( compressedUri , undefined , contentType ) ;
983+ response = await channel . sendImage ( compressedUri , file . filename , contentType ) ;
984984 }
985985 }
986986
You can’t perform that action at this time.
0 commit comments