chore: make locale for emoji suggestions configureable
This commit is contained in:
parent
e7f9302e52
commit
419f57a14c
2 changed files with 4 additions and 1 deletions
|
|
@ -58,6 +58,7 @@ enum AppSettings<T> {
|
|||
'chat.fluffy.color_scheme_seed',
|
||||
0xFF5625BA,
|
||||
),
|
||||
emojiSuggestionLocale<String>('emoji_suggestion_locale', ''),
|
||||
enableSoftLogout<bool>('chat.fluffy.enable_soft_logout', false);
|
||||
|
||||
final String key;
|
||||
|
|
|
|||
|
|
@ -336,7 +336,9 @@ class ChatInputRow extends StatelessWidget {
|
|||
),
|
||||
onChanged: controller.onInputBarChanged,
|
||||
suggestionEmojis: getDefaultEmojiLocale(
|
||||
Localizations.localeOf(context),
|
||||
AppSettings.emojiSuggestionLocale.value.isNotEmpty
|
||||
? Locale(AppSettings.emojiSuggestionLocale.value)
|
||||
: Localizations.localeOf(context),
|
||||
).fold(
|
||||
[],
|
||||
(emojis, category) => emojis..addAll(category.emoji),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue