Change default reply language to be default language when replying to a translated reply (#22272)

Fixes #22250
lolsob-rspec
Claire 2022-12-13 19:41:53 +01:00 committed by GitHub
parent fc9f6cbc19
commit 0e7709efce
1 changed files with 3 additions and 1 deletions

View File

@ -330,8 +330,10 @@ export default function compose(state = initialState, action) {
map.set('preselectDate', new Date());
map.set('idempotencyKey', uuid());
if (action.status.get('language')) {
if (action.status.get('language') && !action.status.has('translation')) {
map.set('language', action.status.get('language'));
} else {
map.set('language', state.get('default_language'));
}
if (action.status.get('spoiler_text').length > 0) {