]> cat aescling's git repositories - mastodon.git/commitdiff
Fix the always-threaded bug
authorOndřej Hruška <ondra@ondrovo.com>
Sat, 6 Jan 2018 18:55:53 +0000 (19:55 +0100)
committerOndřej Hruška <ondra@ondrovo.com>
Sat, 6 Jan 2018 18:55:53 +0000 (19:55 +0100)
app/javascript/flavours/glitch/reducers/compose.js

index 610cc944606ad991a483b57834349f59d44d99a3..f341977b7ba4ec6a06cd1372b55910302511791c 100644 (file)
@@ -298,7 +298,7 @@ export default function compose(state = initialState, action) {
   case COMPOSE_UPLOAD_CHANGE_REQUEST:
     return state.set('is_submitting', true);
   case COMPOSE_SUBMIT_SUCCESS:
-    return action.status && state.get('advanced_options', 'threaded_mode') ? continueThread(state, action.status) : clearAll(state);
+    return action.status && state.getIn(['advanced_options', 'threaded_mode']) ? continueThread(state, action.status) : clearAll(state);
   case COMPOSE_SUBMIT_FAIL:
   case COMPOSE_UPLOAD_CHANGE_FAIL:
     return state.set('is_submitting', false);