about summary refs log tree commit diff
path: root/app/javascript/flavours
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-05-31 05:53:43 +0200
committerClaire <claire.github-309c@sitedethib.com>2022-06-02 11:09:19 +0200
commite94c8b9e29ff0f245dfcd2ab1af58d6ba783863f (patch)
treeca6b27d34577fd4c929c8854746abab085ac72a0 /app/javascript/flavours
parent444ac6d6e9e6947c600a5922c52d25f5d2efdca8 (diff)
[Glitch] Change language to be carried over on reply
Port 14d7cf39f42e23445c70e2e1f26c7b3cd1fab306 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r--app/javascript/flavours/glitch/reducers/compose.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js
index d0aeaa1f0..2ef08b2a6 100644
--- a/app/javascript/flavours/glitch/reducers/compose.js
+++ b/app/javascript/flavours/glitch/reducers/compose.js
@@ -419,6 +419,10 @@ export default function compose(state = initialState, action) {
       map.set('preselectDate', new Date());
       map.set('idempotencyKey', uuid());
 
+      if (action.status.get('language')) {
+        map.set('language', action.status.get('language'));
+      }
+
       if (action.status.get('spoiler_text').length > 0) {
         let spoiler_text = action.status.get('spoiler_text');
         if (action.prependCWRe && !spoiler_text.match(/^re[: ]/i)) {