diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-15 10:52:46 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-15 10:52:46 +0300 |
commit | f2e906ffcfc29367af34fcb47deb11933daa40ee (patch) | |
tree | 503122272fb60a696a7353dba71d3ecb1b6d7cff /protocols/Telegram/src | |
parent | 19430e9bb2857cb136c07df0f4aed88da0ac592c (diff) |
fixes #3922 (Telegram: отключить возможность изменения опции "отправить запрос авторизации")
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r-- | protocols/Telegram/src/proto.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index 801c8eca7a..ab68b5eb26 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -316,14 +316,19 @@ INT_PTR CTelegramProto::GetCaps(int type, MCONTACT) switch (type) { case PFLAGNUM_1: return PF1_IM | PF1_FILE | PF1_CHAT | PF1_SEARCHBYNAME | PF1_ADDSEARCHRES | PF1_MODEMSGRECV | PF1_SERVERCLIST; + case PFLAGNUM_2: return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY; + case PFLAGNUM_4: - return PF4_NOCUSTOMAUTH | PF4_NOCUSTOMAUTH | PF4_NOAUTHDENYREASON | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_SERVERMSGID; + return PF4_NOCUSTOMAUTH | PF4_FORCEAUTH | PF4_NOAUTHDENYREASON | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_SERVERMSGID; + case PFLAGNUM_5: return PF2_SHORTAWAY | PF2_LONGAWAY; + case PFLAG_UNIQUEIDTEXT: return (INT_PTR)L"ID"; + default: return 0; } |