Skip to content

Commit

Permalink
fix quoteCompose action also to match new upstream style
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Aug 11, 2024
1 parent 8b4d8d4 commit 98b5619
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/javascript/flavours/glitch/actions/compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,16 +155,14 @@ export function cancelReplyCompose() {
};
}

export function quoteCompose(status, router) {
export function quoteCompose(status) {
return (dispatch, getState) => {
dispatch({
type: COMPOSE_QUOTE,
status: status,
});

if (!getState().getIn(['compose', 'mounted'])) {
router.push('/publish');
}
ensureComposeIsVisible(getState);
};
}

Expand Down

0 comments on commit 98b5619

Please sign in to comment.