File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
package/src/contexts/messageInputContext Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,10 @@ import type { MessageInputProps } from '../../components/MessageInput/MessageInp
5959import type { MoreOptionsButtonProps } from '../../components/MessageInput/MoreOptionsButton' ;
6060import type { SendButtonProps } from '../../components/MessageInput/SendButton' ;
6161import { useStableCallback } from '../../hooks/useStableCallback' ;
62- import { createAttachmentsCompositionMiddleware } from '../../middlewares/attachments' ;
62+ import {
63+ createAttachmentsCompositionMiddleware ,
64+ createDraftAttachmentsCompositionMiddleware ,
65+ } from '../../middlewares/attachments' ;
6366
6467import { isDocumentPickerAvailable , MediaTypes , NativeHandlers } from '../../native' ;
6568import { File } from '../../types/types' ;
@@ -480,6 +483,10 @@ export const MessageInputProvider = ({
480483 messageComposer . compositionMiddlewareExecutor . replace ( [
481484 createAttachmentsCompositionMiddleware ( messageComposer ) ,
482485 ] ) ;
486+
487+ messageComposer . draftCompositionMiddlewareExecutor . replace ( [
488+ createDraftAttachmentsCompositionMiddleware ( messageComposer ) ,
489+ ] ) ;
483490 }
484491 } , [
485492 value . doFileUploadRequest ,
You can’t perform that action at this time.
0 commit comments