From 7ced6103bd526de1980707bc019b03b2f0b64d00 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 5 Sep 2024 17:49:20 +0300 Subject: =?UTF-8?q?fixes=20#4611=20(Telegram:=20=D0=BD=D0=B5=D0=B2=D0=BE?= =?UTF-8?q?=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=20=D1=83=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=D1=82=D1=8C=20=D1=81=D0=B2=D0=BE=D1=91=20=D1=81=D0=BE?= =?UTF-8?q?=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=83=20=D0=B4?= =?UTF-8?q?=D1=80=D1=83=D0=B3=D0=B8=D1=85=20=D1=83=D1=87=D0=B0=D1=81=D1=82?= =?UTF-8?q?=D0=BD=D0=B8=D0=BA=D0=BE=D0=B2=20=D1=87=D0=B0=D1=82=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'protocols/Telegram/src') diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index cee7b9b1c3..f7ef21a95f 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -502,7 +502,8 @@ INT_PTR CTelegramProto::SvcCanEmptyHistory(WPARAM hContact, LPARAM) { if (auto *pUser = FindUser(GetId(hContact))) { TG_SUPER_GROUP tmp(pUser->id, 0); - return m_arSuperGroups.find(&tmp) == nullptr; + if (auto *pGroup = m_arSuperGroups.find(&tmp)) + return !pGroup->group->is_channel_; } return 0; -- cgit v1.2.3