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/proto.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Telegram/src/proto.cpp') diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index a233395481..66fab24119 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -398,8 +398,7 @@ int CTelegramProto::GetInfo(MCONTACT hContact, int) if (!pUser->isGroupChat) SendQuery(new TD::getUserFullInfo(pUser->id), &CTelegramProto::OnGetUserInfo, pUser); else { - TG_SUPER_GROUP tmp(pUser->id, 0); - if (m_arSuperGroups.find(&tmp)) + if (FindSuperGroup(pUser->id)) SendQuery(new TD::getSupergroupFullInfo(pUser->id), &CTelegramProto::OnGetUserInfo, pUser); else SendQuery(new TD::getBasicGroupFullInfo(pUser->id), &CTelegramProto::OnGetUserInfo, pUser); @@ -423,7 +422,7 @@ void CTelegramProto::OnGetUserInfo(td::ClientManager::Response &response, void * case TD::supergroupFullInfo::ID: ProcessSuperGroupInfo(pUser, (TD::supergroupFullInfo *)response.object.get()); break; - case TD::updateUserFullInfo::ID: + case TD::userFullInfo::ID: ProcessUserInfo(pUser->id, (TD::userFullInfo *)response.object.get()); break; -- cgit v1.2.3