|
|
@ -78,6 +78,7 @@ function mapStateToProps (state) { |
|
|
|
preselectDate: state.getIn(['compose', 'preselectDate']), |
|
|
|
preselectDate: state.getIn(['compose', 'preselectDate']), |
|
|
|
privacy: state.getIn(['compose', 'privacy']), |
|
|
|
privacy: state.getIn(['compose', 'privacy']), |
|
|
|
progress: state.getIn(['compose', 'progress']), |
|
|
|
progress: state.getIn(['compose', 'progress']), |
|
|
|
|
|
|
|
inReplyTo: inReplyTo ? state.getIn(['statuses', inReplyTo]) : null, |
|
|
|
replyAccount: inReplyTo ? state.getIn(['statuses', inReplyTo, 'account']) : null, |
|
|
|
replyAccount: inReplyTo ? state.getIn(['statuses', inReplyTo, 'account']) : null, |
|
|
|
replyContent: inReplyTo ? state.getIn(['statuses', inReplyTo, 'contentHtml']) : null, |
|
|
|
replyContent: inReplyTo ? state.getIn(['statuses', inReplyTo, 'contentHtml']) : null, |
|
|
|
resetFileKey: state.getIn(['compose', 'resetFileKey']), |
|
|
|
resetFileKey: state.getIn(['compose', 'resetFileKey']), |
|
|
@ -302,8 +303,7 @@ class Composer extends React.Component { |
|
|
|
onUpload, |
|
|
|
onUpload, |
|
|
|
privacy, |
|
|
|
privacy, |
|
|
|
progress, |
|
|
|
progress, |
|
|
|
replyAccount, |
|
|
|
inReplyTo, |
|
|
|
replyContent, |
|
|
|
|
|
|
|
resetFileKey, |
|
|
|
resetFileKey, |
|
|
|
sensitive, |
|
|
|
sensitive, |
|
|
|
showSearch, |
|
|
|
showSearch, |
|
|
@ -328,10 +328,9 @@ class Composer extends React.Component { |
|
|
|
{privacy === 'direct' ? <ComposerDirectWarning /> : null} |
|
|
|
{privacy === 'direct' ? <ComposerDirectWarning /> : null} |
|
|
|
{privacy === 'private' && amUnlocked ? <ComposerWarning /> : null} |
|
|
|
{privacy === 'private' && amUnlocked ? <ComposerWarning /> : null} |
|
|
|
{privacy !== 'public' && APPROX_HASHTAG_RE.test(text) ? <ComposerHashtagWarning /> : null} |
|
|
|
{privacy !== 'public' && APPROX_HASHTAG_RE.test(text) ? <ComposerHashtagWarning /> : null} |
|
|
|
{replyAccount && ( |
|
|
|
{inReplyTo && ( |
|
|
|
<ComposerReply |
|
|
|
<ComposerReply |
|
|
|
account={replyAccount} |
|
|
|
status={inReplyTo} |
|
|
|
content={replyContent} |
|
|
|
|
|
|
|
intl={intl} |
|
|
|
intl={intl} |
|
|
|
onCancel={onCancelReply} |
|
|
|
onCancel={onCancelReply} |
|
|
|
/> |
|
|
|
/> |
|
|
@ -417,8 +416,7 @@ Composer.propTypes = { |
|
|
|
preselectDate: PropTypes.instanceOf(Date), |
|
|
|
preselectDate: PropTypes.instanceOf(Date), |
|
|
|
privacy: PropTypes.string, |
|
|
|
privacy: PropTypes.string, |
|
|
|
progress: PropTypes.number, |
|
|
|
progress: PropTypes.number, |
|
|
|
replyAccount: PropTypes.string, |
|
|
|
inReplyTo: ImmutablePropTypes.map, |
|
|
|
replyContent: PropTypes.string, |
|
|
|
|
|
|
|
resetFileKey: PropTypes.number, |
|
|
|
resetFileKey: PropTypes.number, |
|
|
|
sideArm: PropTypes.string, |
|
|
|
sideArm: PropTypes.string, |
|
|
|
sensitive: PropTypes.bool, |
|
|
|
sensitive: PropTypes.bool, |
|
|
|