summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-23 21:17:43 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-23 21:17:43 +0300
commitc8aa8dbfc81a52727783831e6278fcf332fbcaf0 (patch)
tree6ec2a0f153a01008317ddcf1f6701d261ebd911b /protocols/Telegram/src/proto.cpp
parent3c12982c6099bb782ffa1738894465b7ab8d58e1 (diff)
Telegram: "Leave chat" contact menu item for channels & groups
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r--protocols/Telegram/src/proto.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index f3ea4f43e5..c842a623aa 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -96,6 +96,8 @@ CTelegramProto::CTelegramProto(const char* protoName, const wchar_t* userName) :
gcr.pszModule = m_szModuleName;
Chat_Register(&gcr);
+ CreateProtoService(PS_LEAVECHAT, &CTelegramProto::SvcLeaveChat);
+
HookProtoEvent(ME_GC_MUTE, &CTelegramProto::GcMuteHook);
HookProtoEvent(ME_GC_EVENT, &CTelegramProto::GcEventHook);
HookProtoEvent(ME_GC_BUILDMENU, &CTelegramProto::GcMenuHook);