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

This commit is contained in:
Claire 2023-06-26 12:30:35 +02:00 committed by GitHub
parent 7b024baf50
commit ed96e28c9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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) {