In probably dead code, replace a dispatch of muteAccount that was skipping the modal with launching the mute modal.

master
Surinna Curtis 7 years ago
parent 323d437a09
commit df71eadaae
  1. 2
      app/javascript/mastodon/containers/account_container.js

@ -59,7 +59,7 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
if (account.getIn(['relationship', 'muting'])) { if (account.getIn(['relationship', 'muting'])) {
dispatch(unmuteAccount(account.get('id'))); dispatch(unmuteAccount(account.get('id')));
} else { } else {
dispatch(muteAccount(account.get('id'))); dispatch(initMuteModal(account));
} }
}, },

Loading…
Cancel
Save