mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-22 08:20:59 +00:00
Composer lang: Use reply / quote lang and latest recently used language as default
This commit is contained in:
parent
d2c58482f0
commit
87ef2f2a39
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue