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>
lolsob-rspec
Plastikmensch 2023-05-07 18:45:10 +02:00 committed by GitHub
parent e390c26429
commit ef5df7fc66
1 changed files with 1 additions and 0 deletions

View File

@ -457,6 +457,7 @@ export default function compose(state = initialState, action) {
map.set('privacy', state.get('default_privacy')); map.set('privacy', state.get('default_privacy'));
map.set('id', null); map.set('id', null);
map.set('poll', null); map.set('poll', null);
map.set('language', state.get('default_language'));
map.update( map.update(
'advanced_options', 'advanced_options',
map => map.mergeWith(overwrite, state.get('default_advanced_options')), map => map.mergeWith(overwrite, state.get('default_advanced_options')),