2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-01 23:25:15 +00:00

Allow disabling first-word emoji suggestions.

This commit is contained in:
John Preston
2019-05-27 12:16:14 +02:00
parent a49a96ba33
commit 0eb975e679
3 changed files with 22 additions and 8 deletions

View File

@@ -137,7 +137,9 @@ void InitField(
not_null<Ui::InputField*> field) {
field->setInstantReplaces(Ui::InstantReplaces::Default());
field->setInstantReplacesEnabled(Global::ReplaceEmojiValue());
Ui::Emoji::SuggestionsController::Init(container, field);
auto options = Ui::Emoji::SuggestionsController::Options();
options.suggestExactFirstWord = false;
Ui::Emoji::SuggestionsController::Init(container, field, options);
}
not_null<Ui::FlatLabel*> CreateWarningLabel(