|
|
|
@ -17,9 +17,14 @@ import {
|
|
|
|
|
} from '../selectors/selectedConversation';
|
|
|
|
|
import { getStagedAttachmentsForCurrentConversation } from '../selectors/stagedAttachments';
|
|
|
|
|
import { getTheme } from '../selectors/theme';
|
|
|
|
|
import { getHTMLDirection, getOurNumber } from '../selectors/user';
|
|
|
|
|
import { getOurNumber } from '../selectors/user';
|
|
|
|
|
import { HTMLDirection } from '../../util/i18n';
|
|
|
|
|
|
|
|
|
|
const mapStateToProps = (state: StateType) => {
|
|
|
|
|
type SmartSessionConversationOwnProps = {
|
|
|
|
|
htmlDirection: HTMLDirection;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const mapStateToProps = (state: StateType, ownProps: SmartSessionConversationOwnProps) => {
|
|
|
|
|
return {
|
|
|
|
|
selectedConversation: getSelectedConversation(state),
|
|
|
|
|
selectedConversationKey: getSelectedConversationKey(state),
|
|
|
|
@ -33,7 +38,7 @@ const mapStateToProps = (state: StateType) => {
|
|
|
|
|
stagedAttachments: getStagedAttachmentsForCurrentConversation(state),
|
|
|
|
|
hasOngoingCallWithFocusedConvo: getHasOngoingCallWithFocusedConvo(state),
|
|
|
|
|
isSelectedConvoInitialLoadingInProgress: getIsSelectedConvoInitialLoadingInProgress(state),
|
|
|
|
|
htmlDirection: getHTMLDirection(state),
|
|
|
|
|
htmlDirection: ownProps.htmlDirection,
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|