Make secondary toot button work nicer with file attachments & revert to the original behavior if it's disabled

This commit is contained in:
Ondřej Hruška
2017-09-23 23:38:24 +02:00
parent 67f8277526
commit 1924a71b5a
3 changed files with 29 additions and 17 deletions

View File

@@ -26,6 +26,7 @@ const mapStateToProps = state => ({
me: state.getIn(['compose', 'me']),
showSearch: state.getIn(['search', 'submitted']) && !state.getIn(['search', 'hidden']),
settings: state.get('local_settings'),
filesAttached: state.getIn(['compose', 'media_attachments']).size > 0,
});
const mapDispatchToProps = (dispatch) => ({