Do not count chatstate notification to statistics
This commit is contained in:
parent
fa9b984708
commit
03969481e4
1 changed files with 6 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue