Disable threaded mode when canceling a reply (fixes #583)

lolsob-rspec
Thibaut Girka 2018-07-17 22:03:52 +02:00 committed by ThibG
parent 61ed8b2532
commit 95a752365a
1 changed files with 1 additions and 0 deletions

View File

@ -297,6 +297,7 @@ export default function compose(state = initialState, action) {
}
});
case COMPOSE_REPLY_CANCEL:
state = state.setIn(['advanced_options', 'threaded_mode'], false);
case COMPOSE_RESET:
return state.withMutations(map => {
map.set('in_reply_to', null);