Files
@ 581217137292
Branch filter:
Location: libtransport.git/include/Swiften/Serializer/PayloadSerializers/InvisibleSerializer.cpp - annotation
581217137292
830 B
text/x-c++hdr
Do not create conversation when the message contain nickname, because that means the conversation should be MUC, but user didn't connect to that room yet
c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 c38103451c30 | /*
* Copyright (c) 2011 Jan Kaluza
* Licensed under the Simplified BSD license.
* See Documentation/Licenses/BSD-simplified.txt for more information.
*/
#include <Swiften/Serializer/PayloadSerializers/InvisibleSerializer.h>
#include <boost/shared_ptr.hpp>
#include <Swiften/Serializer/XML/XMLTextNode.h>
#include <Swiften/Serializer/XML/XMLRawTextNode.h>
#include <Swiften/Serializer/XML/XMLElement.h>
namespace Swift {
// This payload is NOT part of ANY XEP and it is only
// libtransport related extension.
InvisibleSerializer::InvisibleSerializer() : GenericPayloadSerializer<InvisiblePayload>() {
}
std::string InvisibleSerializer::serializePayload(boost::shared_ptr<InvisiblePayload> attention) const {
XMLElement attentionElement("invisible", "urn:xmpp:invisible:0");
return attentionElement.serialize();
}
}
|