Merge branch 'master' of https://github.com/hanzz/libtransport
This commit is contained in:
commit
1ef5f704ca
1 changed files with 4 additions and 0 deletions
|
@ -1068,6 +1068,10 @@ void NetworkPluginServer::handleElement(boost::shared_ptr<Swift::Element> elemen
|
|||
iq->setTo(Swift::JID(iq->getTo().getNode(), iq->getTo().getDomain(), m_id2resource[stanza->getTo().toBare().toString() + stanza->getID()]));
|
||||
m_id2resource.erase(stanza->getTo().toBare().toString() + stanza->getID());
|
||||
}
|
||||
else {
|
||||
Swift::Presence::ref highest = m_component->getPresenceOracle()->getHighestPriorityPresence(user->getJID());
|
||||
iq->setTo(highest->getFrom());
|
||||
}
|
||||
m_component->getIQRouter()->sendIQ(iq);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue