properly disable reactions when not logged in

This commit is contained in:
fef 2022-12-04 12:33:47 +00:00 committed by neatchee
commit 76a519f83e
13 changed files with 56 additions and 55 deletions

View file

@ -166,11 +166,7 @@ const mapDispatchToProps = (dispatch, { intl, contextType }) => ({
},
onReactionAdd (statusId, name, url) {
const { signedIn } = this.context.identity;
if (signedIn) {
dispatch(addReaction(statusId, name, url));
}
dispatch(addReaction(statusId, name, url));
},
onReactionRemove (statusId, name) {