From c524d03d94afb0c303ca8f21024df6aabc5ccf22 Mon Sep 17 00:00:00 2001 From: Mateusz Piekos Date: Sun, 29 Jul 2012 10:29:15 +0200 Subject: Added namespace to whiteboard payloads diff --git a/Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.cpp b/Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.cpp index f8f68ff..cbf50f1 100644 --- a/Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.cpp +++ b/Swiften/Parser/PayloadParsers/FullPayloadParserFactoryCollection.cpp @@ -124,7 +124,7 @@ FullPayloadParserFactoryCollection::FullPayloadParserFactoryCollection() { factories_.push_back(boost::make_shared >("received", "urn:xmpp:jingle:apps:file-transfer:3")); factories_.push_back(boost::make_shared >("checksum")); factories_.push_back(boost::make_shared >("query", "http://jabber.org/protocol/bytestreams")); - factories_.push_back(boost::make_shared >("wb")); + factories_.push_back(boost::make_shared >("wb", "http://swift.im/whiteboard")); factories_.push_back(boost::make_shared()); factories_.push_back(boost::make_shared()); diff --git a/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.cpp b/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.cpp index f0ab7c1..a4fd618 100644 --- a/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.cpp +++ b/Swiften/Serializer/PayloadSerializers/WhiteboardSerializer.cpp @@ -136,7 +136,7 @@ namespace Swift { } std::string WhiteboardSerializer::serializePayload(boost::shared_ptr payload) const { - XMLElement element("wb"); + XMLElement element("wb", "http://swift.im/whiteboard"); if (payload->getType() == WhiteboardPayload::Data) { XMLElement::ref operationNode = boost::make_shared("operation"); WhiteboardElementSerializingVisitor visitor; -- cgit v0.10.2-6-g49f6