this.props.onMoveDown(this.props.status.get('id'));
}
+ handleHotkeyToggleHidden = () => {
+ this.props.onToggleHidden(this._properStatus());
+ }
+
_properStatus () {
const { status } = this.props;
openProfile: this.handleHotkeyOpenProfile,
moveUp: this.handleHotkeyMoveUp,
moveDown: this.handleHotkeyMoveDown,
+ toggleHidden: this.handleHotkeyToggleHidden,
};
return (
this.context.router.history.push(`/accounts/${this.props.status.getIn(['account', 'id'])}`);
}
+ handleHotkeyToggleHidden = () => {
+ this.handleToggleHidden(this.props.status);
+ }
+
handleMoveUp = id => {
const { status, ancestorsIds, descendantsIds } = this.props;
boost: this.handleHotkeyBoost,
mention: this.handleHotkeyMention,
openProfile: this.handleHotkeyOpenProfile,
+ toggleHidden: this.handleHotkeyToggleHidden,
};
return (