about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2018-07-17 22:03:52 +0200
committerThibG <thib@sitedethib.com>2018-07-18 16:42:00 +0200
commit552b4d9a5f809fbca8a57313b776f2a22448945f (patch)
tree162b51a245d8da425036c47517836e95466ec99a /app/javascript
parentc44579c42dd03c187be08978c54bdfe37d56cc45 (diff)
Disable threaded mode when canceling a reply (fixes #583)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/flavours/glitch/reducers/compose.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js
index e937b3ccf..4ea87b7e5 100644
--- a/app/javascript/flavours/glitch/reducers/compose.js
+++ b/app/javascript/flavours/glitch/reducers/compose.js
@@ -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);