From 4aa6b371da24a302a1c54092a78dcb692d934eb3 Mon Sep 17 00:00:00 2001 From: Davide Polonio Date: Mon, 3 Apr 2023 10:33:36 +0200 Subject: [PATCH] feat: return old locale instead of putting english --- .../telegram/callbackquery/SelectLanguageTutorial.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/github/polpetta/mezzotre/telegram/callbackquery/SelectLanguageTutorial.java b/src/main/java/com/github/polpetta/mezzotre/telegram/callbackquery/SelectLanguageTutorial.java index df940a8..c52ad0d 100644 --- a/src/main/java/com/github/polpetta/mezzotre/telegram/callbackquery/SelectLanguageTutorial.java +++ b/src/main/java/com/github/polpetta/mezzotre/telegram/callbackquery/SelectLanguageTutorial.java @@ -126,8 +126,7 @@ public class SelectLanguageTutorial implements Processor { .getFields() .getAdditionalProperties() .getOrDefault( - Field.NewLanguage.getName(), - Language.English.getLocale())); + Field.NewLanguage.getName(), tgChat.getLocale())); tgChat.save(); log.trace( "Locale for chat "