From 40eb6363bb4e66bbd3bbc1e4191baaa46e1c21c0 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 22 Jun 2025 19:32:45 +0300 Subject: =?UTF-8?q?fixes=20#5051=20(Telegram:=20=D0=BD=D0=B5=D1=82=20?= =?UTF-8?q?=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE=D0=B6=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B8=20=D1=83=D0=B2=D0=B8=D0=B4=D0=B5=D1=82=D1=8C=20=D1=81?= =?UTF-8?q?=D1=81=D1=8B=D0=BB=D0=BA=D1=83=20=D0=BD=D0=B0=20=D0=BA=D0=B0?= =?UTF-8?q?=D0=BD=D0=B0=D0=BB)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/server.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols/Telegram/src/server.cpp') diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 2845520fdb..209fefd70e 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -538,8 +538,7 @@ INT_PTR CTelegramProto::SvcLoadServerHistory(WPARAM hContact, LPARAM) INT_PTR CTelegramProto::SvcCanEmptyHistory(WPARAM hContact, LPARAM bIncoming) { if (auto *pUser = FindUser(GetId(hContact))) { - TG_SUPER_GROUP tmp(pUser->id, 0); - if (auto *pGroup = m_arSuperGroups.find(&tmp)) + if (auto *pGroup = FindSuperGroup(pUser->id)) if (pGroup->group->is_channel_) return 0; -- cgit v1.2.3