diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 82371146..b4bc0bd1 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -282,7 +282,12 @@ void UserManager::handleMessageReceived(Swift::Message::ref message) { } user->getConversationManager()->handleMessageReceived(message); - messageToBackendSent(); + + // Do not count chatstate notification... + boost::shared_ptr statePayload = msg->getPayload(); + if (!statePayload) { + messageToBackendSent(); + } } void UserManager::handleGeneralPresenceReceived(Swift::Presence::ref presence) {