summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-06-22 18:58:45 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-06-22 18:58:45 +0300
commitda5eb4e6c9725aca51f8de23a5cb89ee5b6b3087 (patch)
tree8b2bd84fbbaab7e93d08e2e285169ad584826987
parentc4c5cfe83ceff86ba006bdea1def01827b6cc73f (diff)
Jabber: if MAM is not enabled, there's no need to check its mode
-rw-r--r--protocols/JabberG/src/jabber_thread.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_thread.cpp b/protocols/JabberG/src/jabber_thread.cpp
index 4696897bd9..c39179463a 100644
--- a/protocols/JabberG/src/jabber_thread.cpp
+++ b/protocols/JabberG/src/jabber_thread.cpp
@@ -1372,7 +1372,7 @@ void CJabberProto::OnProcessMessage(const TiXmlElement *node, ThreadData *info)
}
// we ignore messages without server id either if MAM is enabled
- if ((info->jabberServerCaps & JABBER_CAPS_MAM) && m_iMamMode != 0 && szMsgId == nullptr) {
+ if ((info->jabberServerCaps & JABBER_CAPS_MAM) && m_bEnableMam && m_iMamMode != 0 && szMsgId == nullptr) {
debugLogA("MAM is enabled, but there's no stanza-id: ignoting a message");
return;
}