Skip to content
Extraits de code Groupes Projets
Valider aa7a8a30 rédigé par ThibG's avatar ThibG Validation de Eugen Rochko
Parcourir les fichiers

When posting in mobile mode, go back to previous history location (#9502)

Fixes #7112
parent 7c48688d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -144,7 +144,11 @@ export function submitCompose(routerHistory) { ...@@ -144,7 +144,11 @@ export function submitCompose(routerHistory) {
if (response.data.visibility === 'direct' && getState().getIn(['conversations', 'mounted']) <= 0 && routerHistory) { if (response.data.visibility === 'direct' && getState().getIn(['conversations', 'mounted']) <= 0 && routerHistory) {
routerHistory.push('/timelines/direct'); routerHistory.push('/timelines/direct');
} else if (response.data.visibility !== 'direct') { } else if (routerHistory && routerHistory.location.pathname === '/statuses/new' && window.history.state) {
routerHistory.goBack();
}
if (response.data.visibility !== 'direct') {
insertIfOnline('home'); insertIfOnline('home');
} }
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter