Skip to content
Snippets Groups Projects
Commit c1e77b56 authored by りんすき's avatar りんすき Committed by Eugen Rochko
Browse files

fix #6523 (#6524)

parent f69d7cb4
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@ import uuid from '../uuid';
import { me } from '../initial_state';
const initialState = ImmutableMap({
mounted: false,
mounted: 0,
sensitive: false,
spoiler: false,
spoiler_text: '',
......@@ -159,10 +159,10 @@ export default function compose(state = initialState, action) {
case STORE_HYDRATE:
return hydrate(state, action.state.get('compose'));
case COMPOSE_MOUNT:
return state.set('mounted', true);
return state.set('mounted', state.get('mounted') + 1);
case COMPOSE_UNMOUNT:
return state
.set('mounted', false)
.set('mounted', Math.max(state.get('mounted') - 1, 0))
.set('is_composing', false);
case COMPOSE_SENSITIVITY_CHANGE:
return state.withMutations(map => {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment