Working invisible presence

This commit is contained in:
HanzZ 2011-08-13 14:16:40 +02:00
parent f47187d464
commit 0741375ec6
2 changed files with 2 additions and 2 deletions

View file

@ -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());

View file

@ -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();