From 08321b8d8b5503587f2c129361463d0a414f32b8 Mon Sep 17 00:00:00 2001 From: John Preston Date: Wed, 14 Sep 2022 19:58:48 +0400 Subject: [PATCH] Fix sending custom emoji based on Dice-type game emoji. --- Telegram/SourceFiles/api/api_sending.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/api/api_sending.cpp b/Telegram/SourceFiles/api/api_sending.cpp index 6c2f78d07..1a1f12a72 100644 --- a/Telegram/SourceFiles/api/api_sending.cpp +++ b/Telegram/SourceFiles/api/api_sending.cpp @@ -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();