diff options
author | dknn <yoann.blein@free.fr> | 2012-06-28 21:31:44 (GMT) |
---|---|---|
committer | dknn <yoann.blein@free.fr> | 2012-09-22 08:53:12 (GMT) |
commit | 9af0239df10283e03ace0a6a9d719bbe8dc32398 (patch) | |
tree | fbabf4564baef9f143ef7680dc0192f8f1565774 /Swiften/Serializer | |
parent | 39ac2af90938aec4f4e43b81a6e043e0ebcdd798 (diff) | |
download | swift-contrib-9af0239df10283e03ace0a6a9d719bbe8dc32398.zip swift-contrib-9af0239df10283e03ace0a6a9d719bbe8dc32398.tar.bz2 |
Bugfix: serialize the responder in a jingle payload
Diffstat (limited to 'Swiften/Serializer')
-rw-r--r-- | Swiften/Serializer/PayloadSerializers/JinglePayloadSerializer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swiften/Serializer/PayloadSerializers/JinglePayloadSerializer.cpp b/Swiften/Serializer/PayloadSerializers/JinglePayloadSerializer.cpp index 3f134c5..b922c25 100644 --- a/Swiften/Serializer/PayloadSerializers/JinglePayloadSerializer.cpp +++ b/Swiften/Serializer/PayloadSerializers/JinglePayloadSerializer.cpp @@ -38,6 +38,9 @@ std::string JinglePayloadSerializer::serializePayload(boost::shared_ptr<JinglePa if (payload->getInitiator().isValid()) { jinglePayload.setAttribute("initiator", payload->getInitiator()); } + if (payload->getResponder().isValid()) { + jinglePayload.setAttribute("responder", payload->getResponder()); + } jinglePayload.setAttribute("sid", payload->getSessionID()); std::vector<boost::shared_ptr<Payload> > payloads = payload->getPayloads(); |