@@ -230,20 +230,22 @@ class MessageList extends PureComponent {
230230 ref = { this . messageList }
231231 >
232232 < MessageListInner
233+ bottomRef = { this . bottomRef }
234+ channel = { this . props . channel }
235+ client = { this . props . client }
236+ DateSeparator = { this . props . DateSeparator || this . props . dateSeparator }
237+ disableDateSeparator = { this . props . disableDateSeparator }
233238 EmptyStateIndicator = { this . props . EmptyStateIndicator }
234- TypingIndicator = { this . props . TypingIndicator }
235- MessageSystem = { this . props . MessageSystem }
236239 HeaderComponent = { this . props . HeaderComponent }
237240 headerPosition = { this . props . headerPosition }
238- DateSeparator = { this . props . DateSeparator || this . props . dateSeparator }
241+ hideDeletedMessages = { this . props . hideDeletedMessages }
239242 messages = { this . props . messages }
243+ MessageSystem = { this . props . MessageSystem }
240244 noGroupByUser = { this . props . noGroupByUser }
241- threadList = { this . props . threadList }
242- client = { this . props . client }
243- channel = { this . props . channel }
244- read = { this . props . read }
245- bottomRef = { this . bottomRef }
246245 onMessageLoadCaptured = { this . onMessageLoadCaptured }
246+ read = { this . props . read }
247+ threadList = { this . props . threadList }
248+ TypingIndicator = { this . props . TypingIndicator }
247249 internalInfiniteScrollProps = { {
248250 hasMore : this . props . hasMore ,
249251 isLoading : this . props . loadingMore ,
@@ -256,25 +258,12 @@ class MessageList extends PureComponent {
256258 ) ,
257259 } }
258260 internalMessageProps = { {
259- messageListRect : this . state . messageListRect ,
260- openThread : this . props . openThread ,
261- members : this . props . members ,
262- watchers : this . props . watchers ,
263- channel : this . props . channel ,
264- retrySendMessage : this . props . retrySendMessage ,
261+ additionalMessageInputProps : this . props
262+ . additionalMessageInputProps ,
265263 addNotification : this . addNotification ,
266- updateMessage : this . props . updateMessage ,
267- removeMessage : this . props . removeMessage ,
268- Message : this . props . Message ,
269- mutes : this . props . mutes ,
270- unsafeHTML : this . props . unsafeHTML ,
271264 Attachment : this . props . Attachment ,
272265 Avatar : this . props . Avatar ,
273- onMentionsClick : this . props . onMentionsClick ,
274- onMentionsHover : this . props . onMentionsHover ,
275- messageActions : this . props . messageActions ,
276- additionalMessageInputProps : this . props
277- . additionalMessageInputProps ,
266+ channel : this . props . channel ,
278267 getFlagMessageSuccessNotification : this . props
279268 . getFlagMessageSuccessNotification ,
280269 getFlagMessageErrorNotification : this . props
@@ -285,11 +274,23 @@ class MessageList extends PureComponent {
285274 . getMuteUserErrorNotification ,
286275 getPinMessageErrorNotification : this . props
287276 . getPinMessageErrorNotification ,
277+ members : this . props . members ,
278+ Message : this . props . Message ,
279+ messageActions : this . props . messageActions ,
280+ messageListRect : this . state . messageListRect ,
281+ mutes : this . props . mutes ,
282+ onMentionsClick : this . props . onMentionsClick ,
283+ onMentionsHover : this . props . onMentionsHover ,
284+ openThread : this . props . openThread ,
285+ removeMessage : this . props . removeMessage ,
286+ retrySendMessage : this . props . retrySendMessage ,
287+ unsafeHTML : this . props . unsafeHTML ,
288+ updateMessage : this . props . updateMessage ,
289+ watchers : this . props . watchers ,
288290 pinPermissions : this . props . pinPermissions ,
289291 } }
290292 />
291293 </ div >
292-
293294 < div className = "str-chat__list-notifications" >
294295 { this . state . notifications . map ( ( notification ) => (
295296 < CustomNotification
@@ -300,12 +301,10 @@ class MessageList extends PureComponent {
300301 { notification . text }
301302 </ CustomNotification >
302303 ) ) }
303-
304304 < ConnectionStatus />
305-
306305 < MessageNotification
307- showNotification = { this . state . newMessagesNotification }
308306 onClick = { this . goToNewMessages }
307+ showNotification = { this . state . newMessagesNotification }
309308 >
310309 { t ( 'New Messages!' ) }
311310 </ MessageNotification >
@@ -322,6 +321,10 @@ MessageList.propTypes = {
322321 * Defaults to and accepts same props as: [DateSeparator](https://github.com/GetStream/stream-chat-react/blob/master/src/components/DateSeparator.js)
323322 * */
324323 dateSeparator : PropTypes . elementType ,
324+ /** Disables the injection of date separator components, defaults to false */
325+ disableDateSeparator : PropTypes . bool ,
326+ /** Hides the MessageDeleted components from the list, defaults to false */
327+ hideDeletedMessages : PropTypes . bool ,
325328 /** Turn off grouping of messages by user */
326329 noGroupByUser : PropTypes . bool ,
327330 /** render HTML instead of markdown. Posting HTML is only allowed server-side */
@@ -407,7 +410,7 @@ MessageList.propTypes = {
407410 * */
408411 TypingIndicator : PropTypes . elementType ,
409412 /**
410- * The UI Indicator to use when MessagerList or ChannelList is empty
413+ * The UI Indicator to use when MessageList or ChannelList is empty
411414 * */
412415 EmptyStateIndicator : PropTypes . elementType ,
413416 /**
0 commit comments