-
Notifications
You must be signed in to change notification settings - Fork 10.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Message count in statistics is strange #10233
Comments
The total message count is different because the calculation of the values is based on two different tables. The best thing would be to sum up the four already calculated values to get the exact total message count. However, I am not sure if the message count stored in the room object is always up to date. Rocket.Chat/packages/rocketchat-statistics/server/functions/get.js Lines 35 to 40 in c978136
I'll submit a PR for that. |
Ref: #10726 |
Previously, the message count for every channel is increased upon message addition but is not updated upon the deletion of a message #12610. Now that I have linked a pr #16650 on this issue we can save/fetch the actual message count of any channel onto/from the database. So it will be better if we sum up the four values to get the exact total message count. I want to work on this issue |
Description:
In the admin info panel Rocket.chat displays usage statistics. However, it seems that the message count is not correct.
Server Setup Information:
Actual behavior:
=> as you see, the sum of all message is not correct if
Total Messages = Total Messages in Channels + Total Messages in Private Groups + Total Messages in Direct Messages + Total Messages in Livechats
The text was updated successfully, but these errors were encountered: