make the hide/unhide notifications buttons work

This commit is contained in:
Surinna Curtis 2017-09-09 05:16:27 -05:00 committed by aschmitz
parent 8a6ad735f1
commit 343c358bb2
2 changed files with 5 additions and 0 deletions

View File

@ -44,9 +44,11 @@ export default class Account extends ImmutablePureComponent {
}
handleMuteNotifications = () => {
this.props.onMuteNotifications(this.props.account, true);
}
handleUnmuteNotifications = () => {
this.props.onMuteNotifications(this.props.account, false);
}
render () {

View File

@ -63,6 +63,9 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
}
},
onMuteNotifications (account, notifications) {
dispatch(muteAccount(account.get('id'), notifications));
}
});
export default injectIntl(connect(makeMapStateToProps, mapDispatchToProps)(Account));