diff options
-rw-r--r-- | Swift/Controllers/Chat/ChatController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/Chat/ChatController.cpp b/Swift/Controllers/Chat/ChatController.cpp index 302d80c..90764ae 100644 --- a/Swift/Controllers/Chat/ChatController.cpp +++ b/Swift/Controllers/Chat/ChatController.cpp @@ -169,7 +169,7 @@ String ChatController::getStatusChangeString(boost::shared_ptr<Presence> presenc void ChatController::handlePresenceChange(boost::shared_ptr<Presence> newPresence) { if ((!toJID_.equals(newPresence->getFrom(), toJID_.isBare() ? JID::WithoutResource : JID::WithResource)) || - (newPresence->getType() != Presence::Unavailable && newPresence->getType() != Presence::Error)) { + (newPresence->getType() != Presence::Available && newPresence->getType() != Presence::Unavailable && newPresence->getType() != Presence::Error)) { return; } |