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();
auto length = 0;
if (!Ui::Emoji::Find(full.data(), full.data() + full.size(), &length)
|| length != full.size()) {
|| length != full.size()
|| !message.textWithTags.tags.isEmpty()) {
return false;
}
auto &account = message.action.history->session().account();