From aa7743e393353e1bff18ca501c870b103826d853 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 15 Jan 2023 16:00:24 +0300 Subject: fixes #3306 (Telegram contacts use shared Miranda's icon) --- protocols/Telegram/src/mt_proto.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'protocols/Telegram/src') 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) -- cgit v1.2.3