gearheads
/
mastodon
Archived
2
0
Fork 0

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

gh/dev
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
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) {