File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
package/src/components/MessageInput Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,6 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
203203 maxNumberOfFiles,
204204 members,
205205 Reply,
206- resetInput,
207206 SendButton,
208207 sendMessage,
209208 showPollCreationDialog,
@@ -266,6 +265,7 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
266265 const { seconds : cooldownRemainingSeconds } = useCountdown ( cooldownEndsAt ) ;
267266
268267 useEffect ( ( ) => {
268+ messageComposer . updateConfig ( { drafts : { enabled : true } } ) ;
269269 attachmentManager . maxNumberOfFilesPerMessage = maxNumberOfFiles ;
270270 if ( doFileUploadRequest ) {
271271 attachmentManager . setCustomUploadFn ( doFileUploadRequest ) ;
@@ -322,7 +322,7 @@ const MessageInputWithContext = (props: MessageInputPropsWithContext) => {
322322 messageComposer . createDraft ( ) ;
323323 }
324324 } ;
325- } , [ draftsEnabled , messageComposer , resetInput ] ) ;
325+ } , [ draftsEnabled , messageComposer ] ) ;
326326
327327 /**
328328 * Effect to get the draft data for legacy thread composer and set it to message composer.
You can’t perform that action at this time.
0 commit comments