Do not count chatstate notification to statistics

This commit is contained in:
Jan Kaluza 2012-03-22 09:08:02 +01:00
parent fa9b984708
commit 03969481e4

View file

@ -282,7 +282,12 @@ void UserManager::handleMessageReceived(Swift::Message::ref message) {
}
user->getConversationManager()->handleMessageReceived(message);
messageToBackendSent();
// Do not count chatstate notification...
boost::shared_ptr<Swift::ChatState> statePayload = msg->getPayload<Swift::ChatState>();
if (!statePayload) {
messageToBackendSent();
}
}
void UserManager::handleGeneralPresenceReceived(Swift::Presence::ref presence) {