Changeset - 0741375ec667
[Not reviewed]
0 2 0
HanzZ - 14 years ago 2011-08-13 14:16:40
hanzz.k@gmail.com
Working invisible presence
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/transport.cpp
Show inline comments
 
@@ -95,7 +95,7 @@ Component::Component(Swift::EventLoop *loop, Config *config, Factory *factory, T
 
		m_server->addPayloadParserFactory(new GenericPayloadParserFactory<Swift::AttentionParser>("attention", "urn:xmpp:attention:0"));
 
		m_server->addPayloadParserFactory(new GenericPayloadParserFactory<Swift::XHTMLIMParser>("html", "http://jabber.org/protocol/xhtml-im"));
 
		m_server->addPayloadParserFactory(new GenericPayloadParserFactory<Swift::BlockParser>("block", "urn:xmpp:block:0"));
 
		m_server->addPayloadParserFactory(new GenericPayloadParserFactory<Swift::InvisibleParser>("block", "urn:xmpp:invisible:0"));
 
		m_server->addPayloadParserFactory(new GenericPayloadParserFactory<Swift::InvisibleParser>("invisible", "urn:xmpp:invisible:0"));
 

	
 
		m_server->addPayloadSerializer(new Swift::AttentionSerializer());
 
		m_server->addPayloadSerializer(new Swift::XHTMLIMSerializer());
src/user.cpp
Show inline comments
 
@@ -153,7 +153,7 @@ void User::handlePresence(Swift::Presence::ref presence) {
 
		response->setFrom(m_component->getJID());
 
		m_component->getStanzaChannel()->sendPresence(response);
 
		LOG4CXX_INFO(logger, m_jid.toString() << ": Changing legacy network presence to " << response->getType());
 
		onPresenceChanged(response);
 
		onPresenceChanged(highest);
 
	}
 
	else {
 
		Swift::Presence::ref response = Swift::Presence::create();
0 comments (0 inline, 0 general)