diff options
author | George Hazan <ghazan@miranda.im> | 2023-02-23 19:41:54 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-02-23 19:41:54 +0300 |
commit | bddc397fa9e6c164d0288b4665fa10806f8363fa (patch) | |
tree | 5b45c7981815f1ea346878106d4725f688b88014 /protocols/Telegram/src/server.cpp | |
parent | 87ffacfcb26cb3e6378d3d4189cc565d5f487103 (diff) |
Telegram: patch to hide nick list for channels
Diffstat (limited to 'protocols/Telegram/src/server.cpp')
-rw-r--r-- | protocols/Telegram/src/server.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index f4dfd60353..4517c8cca3 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -281,7 +281,11 @@ void CTelegramProto::ProcessChat(TD::updateNewChat *pObj) break;
case TD::chatTypeSupergroup::ID:
- chatId = ((TD::chatTypeSupergroup*)pChat->type_.get())->supergroup_id_;
+ {
+ auto *pSuperGroup = (TD::chatTypeSupergroup *)pChat->type_.get();
+ chatId = pSuperGroup->supergroup_id_;
+ bIsBasicGroup = !pSuperGroup->is_channel_;
+ }
break;
default:
|