From b6a52b7caf04617144bdddba1fa2296b7cdb50a2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 29 Nov 2023 20:39:26 +0300 Subject: =?UTF-8?q?#3983=20(Telegram:=20=D0=BF=D0=BE=D0=BA=D0=B8=D0=BD?= =?UTF-8?q?=D1=83=D1=82=D1=8B=D0=B9=20=D1=87=D0=B0=D1=82=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D1=81=D1=82=D0=B8=D1=80=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D1=81?= =?UTF-8?q?=D1=80=D0=B0=D0=B7=D1=83,=20=D0=B0=20=D1=81=D0=BA=D1=80=D1=8B?= =?UTF-8?q?=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D0=B8=20=D0=B2=D1=8B?= =?UTF-8?q?=D0=BA=D0=B8=D0=B4=D1=8B=D0=B2=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20?= =?UTF-8?q?=D0=B8=D0=B7=20=D1=80=D0=BE=D1=81=D1=82=D0=B5=D1=80=D0=B0)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/Telegram/src/groupchat.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/Telegram/src') diff --git a/protocols/Telegram/src/groupchat.cpp b/protocols/Telegram/src/groupchat.cpp index bf3f8312a5..f19683a9b0 100644 --- a/protocols/Telegram/src/groupchat.cpp +++ b/protocols/Telegram/src/groupchat.cpp @@ -238,13 +238,12 @@ INT_PTR CTelegramProto::SvcLeaveChat(WPARAM hContact, LPARAM) SendQuery(new TD::leaveChat(pUser->chatId)); } - Contact::Hide(hContact); - Contact::RemoveFromList(hContact); - wchar_t wszId[100]; _i64tow(id, wszId, 10); if (auto *si = Chat_Find(wszId, m_szModuleName)) Chat_Terminate(si); + + db_delete_contact(hContact); return 0; } -- cgit v1.2.3