mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Don't select first result on animated emoji suggestion.
This commit is contained in:
parent
9509c88ef9
commit
f63984c9e3
1 changed files with 3 additions and 2 deletions
|
@ -611,7 +611,9 @@ bool SuggestionsWidget::triggerSelectedRow() const {
|
||||||
void SuggestionsWidget::triggerRow(const Row &row) const {
|
void SuggestionsWidget::triggerRow(const Row &row) const {
|
||||||
_triggered.fire({
|
_triggered.fire({
|
||||||
row.emoji->text(),
|
row.emoji->text(),
|
||||||
row.document ? Data::SerializeCustomEmojiId(row.document) : QString()
|
(row.document
|
||||||
|
? Data::SerializeCustomEmojiId(row.document)
|
||||||
|
: QString()),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -754,7 +756,6 @@ void SuggestionsController::handleTextChange() {
|
||||||
const auto query = getEmojiQuery();
|
const auto query = getEmojiQuery();
|
||||||
if (v::is<EmojiPtr>(query)) {
|
if (v::is<EmojiPtr>(query)) {
|
||||||
showWithQuery(query);
|
showWithQuery(query);
|
||||||
_suggestions->selectFirstResult();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const auto text = v::get<QString>(query);
|
const auto text = v::get<QString>(query);
|
||||||
|
|
Loading…
Add table
Reference in a new issue