Broken redux store

pull/1102/head
Vincent 5 years ago
parent f9af58844c
commit c074234fcc

@ -34,7 +34,9 @@ export class SessionConversation extends React.Component<any, State> {
constructor(props: any) {
super(props);
console.log(`[conv] Props:`, props);
const conversationKey = this.props.conversations.selectedConversation;
const conversation = this.props.conversations.conversationLookup[conversationKey];
const unreadCount = conversation.unreadCount;

@ -3,6 +3,7 @@ import { mapDispatchToProps } from '../actions';
import { SessionConversation } from '../../components/session/conversation/SessionConversation';
import { StateType } from '../reducer';
const mapStateToProps = async (state: StateType) => {
// Get messages here!!!!!

Loading…
Cancel
Save