summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_mam.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-09-01 15:03:16 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-09-01 15:03:16 +0300
commitf91eca63c7b22587d27be5653a76894a202edc5a (patch)
treed436461f2fa711ecbe198e748bf5db36b4e55832 /protocols/JabberG/src/jabber_mam.cpp
parenta37056499d9d71dcad002ddb6668ffcb15f936af (diff)
Jabber: MAM query form fix
Diffstat (limited to 'protocols/JabberG/src/jabber_mam.cpp')
-rw-r--r--protocols/JabberG/src/jabber_mam.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/protocols/JabberG/src/jabber_mam.cpp b/protocols/JabberG/src/jabber_mam.cpp
index 4fb0359e93..e65b085224 100644
--- a/protocols/JabberG/src/jabber_mam.cpp
+++ b/protocols/JabberG/src/jabber_mam.cpp
@@ -114,9 +114,9 @@ void CJabberProto::OnIqResultRsm(const TiXmlElement *iqNode, CJabberIqInfo *pInf
XmlNodeIq iq(pReq);
auto *query = iq << XCHILDNS("query", JABBER_FEAT_MAM);
- auto *x = query << XCHILDNS("x", JABBER_FEAT_DATA_FORMS) << XATTR("type", "submit");
- x << XCHILD("var", "FORM_TYPE") << XATTR("type", "hidden") << XCHILD("value", JABBER_FEAT_MAM);
- x << XCHILD("var", "with") << XCHILD("value", jid);
+ auto *form = query << XCHILDNS("x", JABBER_FEAT_DATA_FORMS) << XATTR("type", "submit");
+ form << XCHILD("field") << XATTR("var", "FORM_TYPE") << XATTR("type", "hidden") << XCHILD("value", JABBER_FEAT_MAM);
+ form << XCHILD("field") << XATTR("var", "with") << XCHILD("value", jid);
auto *rsm = query << XCHILDNS("set", "http://jabber.org/protocol/rsm");
rsm << XCHILD("max", "100");
rsm << XCHILD("after", lastId);
@@ -144,9 +144,9 @@ INT_PTR __cdecl CJabberProto::OnMenuLoadHistory(WPARAM hContact, LPARAM)
XmlNodeIq iq(pReq);
auto *query = iq << XCHILDNS("query", JABBER_FEAT_MAM);
- auto *x = query << XCHILDNS("x", JABBER_FEAT_DATA_FORMS) << XATTR("type", "submit");
- x << XCHILD("var", "FORM_TYPE") << XATTR("type", "hidden") << XCHILD("value", JABBER_FEAT_MAM);
- x << XCHILD("var", "with") << XCHILD("value", jid);
+ auto *form = query << XCHILDNS("x", JABBER_FEAT_DATA_FORMS) << XATTR("type", "submit");
+ form << XCHILD("field") << XATTR("var", "FORM_TYPE") << XATTR("type", "hidden") << XCHILD("value", JABBER_FEAT_MAM);
+ form << XCHILD("field") << XATTR("var", "with") << XCHILD("value", jid);
query << XCHILDNS("set", "http://jabber.org/protocol/rsm") << XCHILD("max", "100");
m_ThreadInfo->send(iq);
}