Do not handle presence type='error'

This commit is contained in:
HanzZ 2012-08-05 20:16:23 +02:00
parent 3b3b3a008a
commit d6ae5629a2

View file

@ -282,6 +282,10 @@ void Component::handlePresence(Swift::Presence::ref presence) {
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>();