diff options
author | George Hazan <ghazan@miranda.im> | 2023-01-15 16:00:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-01-15 16:00:24 +0300 |
commit | aa7743e393353e1bff18ca501c870b103826d853 (patch) | |
tree | 4a4c68a06887b70222fb0fbb4ecca16e4ade0b6d | |
parent | 0c601c9ac661bd86975d1d408908c94e61b2fe33 (diff) |
fixes #3306 (Telegram contacts use shared Miranda's icon)
-rw-r--r-- | protocols/ICQ-WIM/src/proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Telegram/src/mt_proto.cpp | 9 |
2 files changed, 4 insertions, 7 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp index 5a86c896d8..3078cf836f 100644 --- a/protocols/ICQ-WIM/src/proto.cpp +++ b/protocols/ICQ-WIM/src/proto.cpp @@ -500,8 +500,6 @@ INT_PTR CIcqProto::GetCaps(int type, MCONTACT) break;
case PFLAGNUM_2:
- return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_INVISIBLE;
-
case PFLAGNUM_3:
return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY | PF2_LIGHTDND | PF2_HEAVYDND | PF2_INVISIBLE;
diff --git a/protocols/Telegram/src/mt_proto.cpp b/protocols/Telegram/src/mt_proto.cpp index 4160092aa2..0e1515eb1c 100644 --- a/protocols/Telegram/src/mt_proto.cpp +++ b/protocols/Telegram/src/mt_proto.cpp @@ -133,17 +133,16 @@ INT_PTR CMTProto::GetCaps(int type, MCONTACT) 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;
+ return PF2_ONLINE | PF2_SHORTAWAY | PF2_LONGAWAY;
case PFLAGNUM_4:
return PF4_NOCUSTOMAUTH | PF4_NOAUTHDENYREASON | PF4_IMSENDOFFLINE | PF4_OFFLINEFILES | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_SERVERMSGID;
case PFLAGNUM_5:
- return 0;
+ return PF2_SHORTAWAY | PF2_LONGAWAY;
case PFLAG_UNIQUEIDTEXT:
return (INT_PTR)L"Phone";
+ default:
+ return 0;
}
- return 0;
}
int CMTProto::SendMsg(MCONTACT hContact, int, const char *pszMessage)
|