[Glitch] Change default reply language to be default language when replying to a translated reply
Port 0e7709efce
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
lolsob-rspec
parent
52d6c1540b
commit
9af13fa961
|
@ -421,8 +421,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) {
|
||||
|
|
Loading…
Reference in New Issue