From 1923923f9c370f19491b347675a3a1d108bf7eac Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 17 Jun 2024 13:40:08 +0300 Subject: =?UTF-8?q?fixes=20#4470=20(=D0=A0=D0=B5=D0=B0=D0=BA=D1=86=D0=B8?= =?UTF-8?q?=D0=B8:=20=D0=BF=D0=B0=D0=B4=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D0=BF=D0=BE=D0=BF=D1=8B=D1=82=D0=BA=D0=B5=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=81=D1=82=D0=B0=D0=B2=D0=B8=D1=82=D1=8C=20=D0=BF?= =?UTF-8?q?=D1=83=D1=81=D1=82=D1=83=D1=8E=20=D1=80=D0=B5=D0=B0=D0=BA=D1=86?= =?UTF-8?q?=D0=B8=D1=8E)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/menus.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols') diff --git a/protocols/Telegram/src/menus.cpp b/protocols/Telegram/src/menus.cpp index 0e15de32e4..acdbb6e54b 100644 --- a/protocols/Telegram/src/menus.cpp +++ b/protocols/Telegram/src/menus.cpp @@ -159,10 +159,10 @@ public: DB::EventInfo dbei(m_hEvent, false); __int64 msgId = ::dbei2id(dbei); - char *pszEmoji = (char *)cmbReactions.GetCurData(); - auto reaction = TD::make_object(pszEmoji); - - m_proto->SendQuery(new TD::addMessageReaction(m_pUser->chatId, msgId, std::move(reaction), false, false)); + if (char *pszEmoji = (char *)cmbReactions.GetCurData()) { + auto reaction = TD::make_object(pszEmoji); + m_proto->SendQuery(new TD::addMessageReaction(m_pUser->chatId, msgId, std::move(reaction), false, false)); + } return true; } }; -- cgit v1.2.3