Increment dropdown emoji selection in recent list.

Fixes #4539.
This commit is contained in:
John Preston 2018-03-26 00:28:23 +04:00
parent 91a7a77bb0
commit 6904e023d3
1 changed files with 1 additions and 2 deletions

View File

@ -467,8 +467,7 @@ void SuggestionsController::replaceCurrent(const QString &replacement) {
cursor.insertText(replacement);
}
auto emojiText = GetSuggestionEmoji(QStringToUTF16(replacement));
if (auto emoji = Find(QStringFromUTF16(emojiText))) {
if (auto emoji = Find(replacement)) {
if (emoji->hasVariants()) {
auto it = cEmojiVariants().constFind(emoji->nonColoredId());
if (it != cEmojiVariants().cend()) {