@@ -157,7 +157,7 @@ type ChannelPropsForwardedToComponentContext = Pick<
157157> ;
158158
159159export type ChannelProps = ChannelPropsForwardedToComponentContext & {
160- // todo: move to MessageComposer configuration
160+ // todo: X document the use of config.attachments.fileUploadFilter to replace acceptedFiles prop
161161 /** List of accepted file types */
162162 acceptedFiles ?: string [ ] ;
163163 /** Custom handler function that runs when the active channel has unread messages and the app is running on a separate browser tab */
@@ -208,11 +208,10 @@ export type ChannelProps = ChannelPropsForwardedToComponentContext & {
208208 LoadingErrorIndicator ?: React . ComponentType < LoadingErrorIndicatorProps > ;
209209 /** Configuration parameter to mark the active channel as read when mounted (opened). By default, the channel is marked read on mount. */
210210 markReadOnMount ?: boolean ;
211+ // todo: X document how maxNumberOfFiles can be customized with message composer
211212 /** Maximum number of attachments allowed per message */
212213 maxNumberOfFiles ?: number ;
213- /** Enables storing message drafts on the server. */
214- messageDraftsEnabled ?: boolean ;
215- // todo: document that multipleUploads is redundant and ignored with message composer
214+ // todo: X document that multipleUploads is redundant and ignored with message composer
216215 /** Whether to allow multiple attachment uploads */
217216 multipleUploads ?: boolean ;
218217 /** Custom action handler function to run on click of an @mention in a message */
@@ -305,7 +304,6 @@ const ChannelInner = (
305304 LoadingIndicator = DefaultLoadingIndicator ,
306305 markReadOnMount = true ,
307306 maxNumberOfFiles,
308- messageDraftsEnabled,
309307 multipleUploads = true ,
310308 onMentionsClick,
311309 onMentionsHover,
@@ -555,7 +553,7 @@ const ChannelInner = (
555553 }
556554
557555 if ( maxNumberOfFiles ) {
558- // todo: this has to be configured via a template
556+ // todo: X this has to be configured via a template
559557 channel . messageComposer . attachmentManager . config . maxNumberOfFilesPerMessage =
560558 maxNumberOfFiles ;
561559 }
@@ -1081,8 +1079,6 @@ const ChannelInner = (
10811079
10821080 const openThread = ( message : LocalMessage , event ?: React . BaseSyntheticEvent ) => {
10831081 event ?. preventDefault ( ) ;
1084- // todo: revisit how to open a thread
1085-
10861082 dispatch ( { channel, message, type : 'openThread' } ) ;
10871083 } ;
10881084
@@ -1161,7 +1157,6 @@ const ChannelInner = (
11611157 imageAttachmentSizeHandler :
11621158 props . imageAttachmentSizeHandler || getImageAttachmentConfiguration ,
11631159 maxNumberOfFiles,
1164- messageDraftsEnabled,
11651160 multipleUploads,
11661161 mutes,
11671162 notifications,
0 commit comments