feat: return old locale instead of putting english
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is passing Details

pull/2/head
Davide Polonio 2023-04-03 10:33:36 +02:00
parent d2a2f80135
commit 4aa6b371da
1 changed files with 1 additions and 2 deletions

View File

@ -126,8 +126,7 @@ public class SelectLanguageTutorial implements Processor {
.getFields() .getFields()
.getAdditionalProperties() .getAdditionalProperties()
.getOrDefault( .getOrDefault(
Field.NewLanguage.getName(), Field.NewLanguage.getName(), tgChat.getLocale()));
Language.English.getLocale()));
tgChat.save(); tgChat.save();
log.trace( log.trace(
"Locale for chat " "Locale for chat "