Changeset - d6ae5629a2c7
[Not reviewed]
0 1 0
HanzZ - 13 years ago 2012-08-05 20:16:23
hanzz.k@gmail.com
Do not handle presence type='error'
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/transport.cpp
Show inline comments
 
@@ -279,12 +279,16 @@ void Component::handlePresence(Swift::Presence::ref presence) {
 

	
 
	// filter out bad presences
 
	if (!presence->getFrom().isValid()) {
 
		return;
 
	}
 

	
 
	if (presence->getType() == Presence::Error) {
 
		return;
 
	}
 

	
 
	// check if we have this client's capabilities and ask for them
 
	if (presence->getType() != Swift::Presence::Unavailable) {
 
		boost::shared_ptr<CapsInfo> capsInfo = presence->getPayload<CapsInfo>();
 
		if (capsInfo && capsInfo->getHash() == "sha-1") {
 
			/*haveFeatures = */m_entityCapsManager->getCaps(presence->getFrom()) != DiscoInfo::ref();
 
		}
0 comments (0 inline, 0 general)