Skip to content
Extraits de code Groupes Projets
Valider c1e77b56 rédigé par りんすき's avatar りんすき Validation de Eugen Rochko
Parcourir les fichiers

fix #6523 (#6524)

parent f69d7cb4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -34,7 +34,7 @@ import uuid from '../uuid'; ...@@ -34,7 +34,7 @@ import uuid from '../uuid';
import { me } from '../initial_state'; import { me } from '../initial_state';
const initialState = ImmutableMap({ const initialState = ImmutableMap({
mounted: false, mounted: 0,
sensitive: false, sensitive: false,
spoiler: false, spoiler: false,
spoiler_text: '', spoiler_text: '',
...@@ -159,10 +159,10 @@ export default function compose(state = initialState, action) { ...@@ -159,10 +159,10 @@ export default function compose(state = initialState, action) {
case STORE_HYDRATE: case STORE_HYDRATE:
return hydrate(state, action.state.get('compose')); return hydrate(state, action.state.get('compose'));
case COMPOSE_MOUNT: case COMPOSE_MOUNT:
return state.set('mounted', true); return state.set('mounted', state.get('mounted') + 1);
case COMPOSE_UNMOUNT: case COMPOSE_UNMOUNT:
return state return state
.set('mounted', false) .set('mounted', Math.max(state.get('mounted') - 1, 0))
.set('is_composing', false); .set('is_composing', false);
case COMPOSE_SENSITIVITY_CHANGE: case COMPOSE_SENSITIVITY_CHANGE:
return state.withMutations(map => { return state.withMutations(map => {
......
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