Don't select first result on animated emoji suggestion.

This commit is contained in:
John Preston 2022-08-08 14:57:33 +03:00
parent 9509c88ef9
commit f63984c9e3

View file

@ -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);