From 179e38cf150e2ccb8608dae09c8d57be8839d010 Mon Sep 17 00:00:00 2001 From: Plastikmensch Date: Sun, 7 May 2023 18:45:10 +0200 Subject: [PATCH] Reset language to default when cancelling a reply (#2114) When cancelling a reply, the language was still set to the language of the replied to toot. Signed-off-by: Plastikmensch --- app/javascript/flavours/glitch/reducers/compose.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js index 00b64d9049..6e3bdda633 100644 --- a/app/javascript/flavours/glitch/reducers/compose.js +++ b/app/javascript/flavours/glitch/reducers/compose.js @@ -457,6 +457,7 @@ export default function compose(state = initialState, action) { map.set('privacy', state.get('default_privacy')); map.set('id', null); map.set('poll', null); + map.set('language', state.get('default_language')); map.update( 'advanced_options', map => map.mergeWith(overwrite, state.get('default_advanced_options')),