Progress with DMs
Progress with DMs
This commit is contained in:
@@ -1,10 +1,23 @@
|
||||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { connect } from 'react-redux'
|
||||
import isObject from 'lodash.isobject'
|
||||
import { setChatConversationSelected } from '../actions/chats'
|
||||
import PageTitle from '../features/ui/util/page_title'
|
||||
import MessagesLayout from '../layouts/messages_layout'
|
||||
|
||||
class MessagesPage extends React.PureComponent {
|
||||
|
||||
|
||||
componentDidMount() {
|
||||
if (isObject(this.props.params)) {
|
||||
const { chatConversationId } = this.props.params
|
||||
if (chatConversationId) {
|
||||
this.props.dispatch(setChatConversationSelected(chatConversationId))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
const {
|
||||
children,
|
||||
@@ -34,4 +47,4 @@ MessagesPage.propTypes = {
|
||||
source: PropTypes.string,
|
||||
}
|
||||
|
||||
export default MessagesPage
|
||||
export default connect()(MessagesPage)
|
||||
Reference in New Issue
Block a user