diff options
author | George Hazan <ghazan@miranda.im> | 2022-12-05 20:20:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-12-05 20:20:50 +0300 |
commit | 3484d2d1aafb294f387ef5b3e42f04e5129ab55a (patch) | |
tree | 8b0b01d0c03b031b65c708b5c1ee4feeed0288e1 /protocols/Telegram/src | |
parent | 1c7167406020c45856358a95c1ade1aa217dccd3 (diff) |
Telegram: protocol icons
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r-- | protocols/Telegram/src/main.cpp | 2 | ||||
-rw-r--r-- | protocols/Telegram/src/mt_proto.cpp | 12 |
2 files changed, 12 insertions, 2 deletions
diff --git a/protocols/Telegram/src/main.cpp b/protocols/Telegram/src/main.cpp index 07a551794b..5e03db9f29 100644 --- a/protocols/Telegram/src/main.cpp +++ b/protocols/Telegram/src/main.cpp @@ -12,7 +12,7 @@ CMPlugin g_plugin; ///////////////////////////////////////////////////////////////////////////////////////// -static PLUGININFOEX pluginInfo = +PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), __PLUGIN_NAME, diff --git a/protocols/Telegram/src/mt_proto.cpp b/protocols/Telegram/src/mt_proto.cpp index 83cf3b82cf..b767d79475 100644 --- a/protocols/Telegram/src/mt_proto.cpp +++ b/protocols/Telegram/src/mt_proto.cpp @@ -15,8 +15,18 @@ CMTProto::~CMTProto() INT_PTR CMTProto::GetCaps(int type, MCONTACT) { switch (type) { + case PFLAGNUM_1: + return PF1_IM | PF1_FILE | PF1_CHAT | PF1_BASICSEARCH | PF1_ADDSEARCHRES | PF1_MODEMSGRECV; + case PFLAGNUM_2: + return PF2_ONLINE; + case PFLAGNUM_3: + return 0; + case PFLAGNUM_4: + return PF4_NOCUSTOMAUTH | PF4_NOAUTHDENYREASON | PF4_IMSENDOFFLINE | PF4_OFFLINEFILES | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_SERVERMSGID; + case PFLAGNUM_5: + return 0; case PFLAG_UNIQUEIDTEXT: - return (INT_PTR)"Phone"; + return (INT_PTR)L"Phone"; } return 0; } |