diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index ff7ddd070..cc6e4c3c4 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -60,8 +60,6 @@ conversation => conversation.cachedProps ); - console.log(conversationId); - const initialState = { conversations: { conversationLookup: Signal.Util.makeLookup(conversations, 'id'), @@ -80,8 +78,8 @@ window.conversationStore = store; this.sessionConversationView = new Whisper.ReactWrapperView({ - JSX: Signal.State.Roots.createSessionConversation(this.store), - className: 'session-conversation-redux-wrapper', + JSX: Signal.State.Roots.createSessionConversation(store), + className: 'conversation-item', }); // Enables our redux store to be updated by backbone events in the outside world @@ -122,9 +120,9 @@ // Add sessionConversation to the DOM // Don't worry - this isn't fetching messages on every re-render. It's pulling - // from Redux - // $('#main-view .conversation-stack').html(''); - $('#main-view .conversation-stack').prepend(this.sessionConversationView.el); + // from Redux + $('#main-view .conversation-stack').html(''); + $('#main-view .conversation-stack').append(this.sessionConversationView.el); }, }); diff --git a/ts/state/smart/SessionConversation.tsx b/ts/state/smart/SessionConversation.tsx index fcc897b6b..f3a0117d3 100644 --- a/ts/state/smart/SessionConversation.tsx +++ b/ts/state/smart/SessionConversation.tsx @@ -8,6 +8,8 @@ import { getSessionConversationInfo } from '../selectors/conversations'; const mapStateToProps = (state: StateType) => { const conversationInfo = getSessionConversationInfo(state); + console.log(`[vince] stateToProps from SessionConversation:`, conversationInfo); + return { ...conversationInfo, }