summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-07-22 18:50:42 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-07-22 18:50:42 +0300
commit18db8c6eb17021f64e14406133b2bc38a4f98243 (patch)
treed6aef25a38c7b7249971ce2a46d26123322d3c28
parenta649fb38df9fe563e45d38a7f9d329fba2ed1dfd (diff)
fixes #4558 (У чата в клисте отсутствует пункт контекстного меню "Файл", если история чата не хранится в базе)
-rw-r--r--protocols/JabberG/src/jabber_proto.cpp2
-rw-r--r--protocols/Telegram/src/proto.cpp2
-rw-r--r--protocols/WhatsApp/src/proto.cpp3
3 files changed, 5 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_proto.cpp b/protocols/JabberG/src/jabber_proto.cpp
index a6127ac83c..c4356589b5 100644
--- a/protocols/JabberG/src/jabber_proto.cpp
+++ b/protocols/JabberG/src/jabber_proto.cpp
@@ -576,6 +576,8 @@ INT_PTR CJabberProto::GetCaps(int type, MCONTACT hContact)
dwFlags = PF4_FORCEAUTH | PF4_NOCUSTOMAUTH | PF4_NOAUTHDENYREASON | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_READNOTIFY;
if (m_bUseHttpUpload || m_bInlinePictures)
dwFlags |= PF4_OFFLINEFILES;
+ if (m_bUseHttpUpload)
+ dwFlags |= PF4_GROUPCHATFILES;
if (m_ThreadInfo && (m_ThreadInfo->jabberServerCaps & JABBER_CAPS_MAM))
dwFlags |= PF4_SERVERMSGID;
return dwFlags;
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index 05690aa8c0..840c8ec5e7 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -345,7 +345,7 @@ INT_PTR CTelegramProto::GetCaps(int type, MCONTACT)
case PFLAGNUM_4:
return PF4_NOCUSTOMAUTH | PF4_FORCEAUTH | PF4_OFFLINEFILES | PF4_NOAUTHDENYREASON | PF4_SUPPORTTYPING | PF4_AVATARS
- | PF4_SERVERMSGID | PF4_DELETEFORALL | PF4_REPLY;
+ | PF4_SERVERMSGID | PF4_DELETEFORALL | PF4_REPLY | PF4_GROUPCHATFILES;
case PFLAGNUM_5:
return PF2_SHORTAWAY | PF2_LONGAWAY;
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp
index 2dafb64065..f71b36baf8 100644
--- a/protocols/WhatsApp/src/proto.cpp
+++ b/protocols/WhatsApp/src/proto.cpp
@@ -184,7 +184,8 @@ INT_PTR WhatsAppProto::GetCaps(int type, MCONTACT)
case PFLAGNUM_3:
return 0;
case PFLAGNUM_4:
- return PF4_NOCUSTOMAUTH | PF4_NOAUTHDENYREASON | PF4_IMSENDOFFLINE | PF4_OFFLINEFILES | PF4_SUPPORTTYPING | PF4_AVATARS | PF4_SERVERMSGID;
+ return PF4_NOCUSTOMAUTH | PF4_NOAUTHDENYREASON | PF4_IMSENDOFFLINE | PF4_OFFLINEFILES | PF4_SUPPORTTYPING | PF4_AVATARS |
+ PF4_SERVERMSGID | PF4_GROUPCHATFILES;
case PFLAGNUM_5:
return 0;
case PFLAG_UNIQUEIDTEXT: