diff --git a/client/src/components/chat-conversation-list/chat-conversation-list.component.jsx b/client/src/components/chat-conversation-list/chat-conversation-list.component.jsx index 0459f291a..b1890772d 100644 --- a/client/src/components/chat-conversation-list/chat-conversation-list.component.jsx +++ b/client/src/components/chat-conversation-list/chat-conversation-list.component.jsx @@ -2,15 +2,8 @@ import { ShrinkOutlined } from "@ant-design/icons"; import { Avatar, Badge, Col, List, Row } from "antd"; import React from "react"; import { connect } from "react-redux"; -import { createStructuredSelector } from "reselect"; -import { - openConversation, - toggleChatVisible -} from "../../redux/messaging/messaging.actions"; +import { openConversation, toggleChatVisible } from "../../redux/messaging/messaging.actions"; -const mapStateToProps = createStructuredSelector({ - //currentUser: selectCurrentUser -}); const mapDispatchToProps = dispatch => ({ toggleChatVisible: () => dispatch(toggleChatVisible()), openConversation: number => dispatch(openConversation(number)) @@ -59,7 +52,4 @@ export function ChatConversationListComponent({ ); } -export default connect( - mapStateToProps, - mapDispatchToProps -)(ChatConversationListComponent); +export default connect(null, mapDispatchToProps)(ChatConversationListComponent); diff --git a/client/src/components/chat-conversation/chat-conversation.closed.component.jsx b/client/src/components/chat-conversation/chat-conversation.closed.component.jsx index 4f926228c..3c0f38d0f 100644 --- a/client/src/components/chat-conversation/chat-conversation.closed.component.jsx +++ b/client/src/components/chat-conversation/chat-conversation.closed.component.jsx @@ -21,8 +21,8 @@ function ChatConversationClosedComponent({ closeConversation }) { return ( -
-
toggleConversationVisible(conversation.phone_num)}> +
+
toggleConversationVisible(conversation.id)}> {conversation.phone_num}