Fix sending custom emoji based on Dice-type game emoji.

This commit is contained in:
John Preston 2022-09-14 19:58:48 +04:00
parent bc340d75c4
commit 08321b8d8b

View file

@ -231,7 +231,8 @@ bool SendDice(MessageToSend &message) {
const auto full = QStringView(message.textWithTags.text).trimmed(); const auto full = QStringView(message.textWithTags.text).trimmed();
auto length = 0; auto length = 0;
if (!Ui::Emoji::Find(full.data(), full.data() + full.size(), &length) if (!Ui::Emoji::Find(full.data(), full.data() + full.size(), &length)
|| length != full.size()) { || length != full.size()
|| !message.textWithTags.tags.isEmpty()) {
return false; return false;
} }
auto &account = message.action.history->session().account(); auto &account = message.action.history->session().account();