Fix compose form not being shown when clicking “Make your first post” on mobile (#25581)

lolsob-rspec
Claire 2023-06-26 12:30:35 +02:00 committed by GitHub
parent 65b5808421
commit 1164011bad
1 changed files with 2 additions and 2 deletions

View File

@ -129,13 +129,13 @@ export function resetCompose() {
};
}
export const focusCompose = (routerHistory, defaultText) => dispatch => {
export const focusCompose = (routerHistory, defaultText) => (dispatch, getState) => {
dispatch({
type: COMPOSE_FOCUS,
defaultText,
});
ensureComposeIsVisible(routerHistory);
ensureComposeIsVisible(getState, routerHistory);
};
export function mentionCompose(account, routerHistory) {