Composer lang: Use reply / quote lang and latest recently used language as default
This commit is contained in:
parent
d2c58482f0
commit
87ef2f2a39
|
@ -110,7 +110,7 @@ struct StatusEditorAccessoryView: View {
|
|||
customEmojisSheet
|
||||
}
|
||||
.onAppear {
|
||||
viewModel.setInitialLanguageSelection(preference: preferences.serverPreferences?.postLanguage)
|
||||
viewModel.setInitialLanguageSelection(preference: preferences.recentlyUsedLanguages.first ?? preferences.serverPreferences?.postLanguage)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue