disable reaction button when not signed in

This commit is contained in:
anna 2022-12-03 16:55:37 +00:00
parent fb0f9c2174
commit 9b2166a3f0
Signed by: fef
GPG key ID: EC22E476DC2D3D84

View file

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