mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +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 {
|
||||
_triggered.fire({
|
||||
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();
|
||||
if (v::is<EmojiPtr>(query)) {
|
||||
showWithQuery(query);
|
||||
_suggestions->selectFirstResult();
|
||||
return;
|
||||
}
|
||||
const auto text = v::get<QString>(query);
|
||||
|
|
Loading…
Add table
Reference in a new issue