summaryrefslogtreecommitdiffstats
path: root/remoting/jingle_glue/iq_request.cc
diff options
context:
space:
mode:
Diffstat (limited to 'remoting/jingle_glue/iq_request.cc')
-rw-r--r--remoting/jingle_glue/iq_request.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/remoting/jingle_glue/iq_request.cc b/remoting/jingle_glue/iq_request.cc
index 5de2e33..0e93c56 100644
--- a/remoting/jingle_glue/iq_request.cc
+++ b/remoting/jingle_glue/iq_request.cc
@@ -12,11 +12,13 @@ namespace remoting {
// static
buzz::XmlElement* IqRequest::MakeIqStanza(const std::string& type,
const std::string& addressee,
- buzz::XmlElement* iq_body) {
+ buzz::XmlElement* iq_body,
+ const std::string& id) {
buzz::XmlElement* stanza = new buzz::XmlElement(buzz::QN_IQ);
stanza->AddAttr(buzz::QN_TYPE, type);
if (!addressee.empty())
stanza->AddAttr(buzz::QN_TO, addressee);
+ stanza->AddAttr(buzz::QN_ID, id);
stanza->AddElement(iq_body);
return stanza;
}