summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-23 18:36:43 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-23 18:36:43 +0300
commit1889a81d577b0a0227724029cb083bea8a70758e (patch)
tree5e4a2258c69bce4c00287fb1e61a019d70ec9dde /protocols/Telegram/src
parent5ddd359f99bd383297f64cb1338c860ba66c80bb (diff)
fixes #3952 (Telegram: при покидании канала в клисте появляется приватный чат)
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r--protocols/Telegram/src/groupchat.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Telegram/src/groupchat.cpp b/protocols/Telegram/src/groupchat.cpp
index eee14c00cd..c456f05558 100644
--- a/protocols/Telegram/src/groupchat.cpp
+++ b/protocols/Telegram/src/groupchat.cpp
@@ -230,9 +230,10 @@ void CTelegramProto::Chat_LogMenu(GCHOOK *gch)
SendQuery(new TD::leaveChat(pUser->chatId));
}
- Chat_Terminate(gch->si);
Contact::Hide(gch->si->hContact);
Contact::RemoveFromList(gch->si->hContact);
+
+ Chat_Terminate(gch->si);
break;
}
}