properly disable reactions when not logged in

This commit is contained in:
fef 2022-12-04 12:33:47 +00:00 committed by Jeremy Kescher
commit b46adb9a1d
No known key found for this signature in database
GPG key ID: 80A419A7A613DFA4
13 changed files with 56 additions and 55 deletions

View file

@ -61,6 +61,7 @@ class Status extends ImmutablePureComponent {
static contextTypes = {
router: PropTypes.object,
identity: PropTypes.object,
};
static propTypes = {
@ -830,6 +831,7 @@ class Status extends ImmutablePureComponent {
numVisible={visibleReactions}
addReaction={this.props.onReactionAdd}
removeReaction={this.props.onReactionRemove}
canReact={this.context.identity.signedIn}
/>
{!isCollapsed || !(muted || !settings.getIn(['collapsed', 'show_action_bar'])) ? (