diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-23 21:17:43 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-23 21:17:43 +0300 |
commit | c8aa8dbfc81a52727783831e6278fcf332fbcaf0 (patch) | |
tree | 6ec2a0f153a01008317ddcf1f6701d261ebd911b /protocols/Telegram/src/proto.cpp | |
parent | 3c12982c6099bb782ffa1738894465b7ab8d58e1 (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.cpp | 2 |
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); |