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 <plastikmensch@users.noreply.github.com>
local
Plastikmensch 1 year ago committed by GitHub
parent 3fb7fe14c6
commit 179e38cf15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      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')),

Loading…
Cancel
Save