Composer lang: Use reply / quote lang and latest recently used language as default

This commit is contained in:
Thomas Ricouard 2023-03-01 07:44:37 +01:00
parent d2c58482f0
commit 87ef2f2a39
2 changed files with 2 additions and 2 deletions

View file

@ -110,7 +110,7 @@ struct StatusEditorAccessoryView: View {
customEmojisSheet
}
.onAppear {
viewModel.setInitialLanguageSelection(preference: preferences.serverPreferences?.postLanguage)
viewModel.setInitialLanguageSelection(preference: preferences.recentlyUsedLanguages.first ?? preferences.serverPreferences?.postLanguage)
}
}

View file

@ -134,7 +134,7 @@ public class StatusEditorViewModel: NSObject, ObservableObject {
func setInitialLanguageSelection(preference: String?) {
switch mode {
case let .edit(status):
case let .edit(status), let .replyTo(status), let .quote(status):
selectedLanguage = status.language
default:
break