diff options
Diffstat (limited to 'remoting/jingle_glue/javascript_iq_request.cc')
-rw-r--r-- | remoting/jingle_glue/javascript_iq_request.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/remoting/jingle_glue/javascript_iq_request.cc b/remoting/jingle_glue/javascript_iq_request.cc index 62366cf..b08ffe9 100644 --- a/remoting/jingle_glue/javascript_iq_request.cc +++ b/remoting/jingle_glue/javascript_iq_request.cc @@ -83,11 +83,12 @@ JavascriptIqRequest::~JavascriptIqRequest() { registry_->RemoveAllRequests(this); } -void JavascriptIqRequest::SendIq(buzz::XmlElement* stanza) { +void JavascriptIqRequest::SendIq(const std::string& type, + const std::string& addressee, + buzz::XmlElement* iq_body) { std::string id = signal_strategy_->GetNextId(); - stanza->AddAttr(buzz::QN_ID, id); registry_->RegisterRequest(this, id); - signal_strategy_->SendStanza(stanza); + signal_strategy_->SendStanza(MakeIqStanza(type, addressee, iq_body, id)); } void JavascriptIqRequest::set_callback(const ReplyCallback& callback) { |