-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Unexpected behaviour in im.counters endpont API #33301
Comments
Have you tested on latest? Please do and let us know. |
This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed. |
I have just tested in latest version (6.12.1) and the error persist: {
"joined": true,
"members": 2,
"unreads": null,
"unreadsFrom": null,
"msgs": 1,
"latest": "2024-10-07T08:28:23.875Z",
"userMentions": 0,
"success": true
} |
This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed. |
There is 6.12.2 (you really should upgrade) and 6.13.0 and 7.0-rc Latest literally means that. For you test on 6.13 or 7.0 |
I've just tested in 6.13.0 and 7.0.0-rc.6 (the latest versions a the time of writing this comment) and get the same result in both scenarios. |
This issue has been marked as stale because there has been no further activity in the last 10 days. If the issue remains stale for the next 4 days (a total of 14 days with no activity), then it will be assumed that the question has been resolved and the issue will be automatically closed. |
This is still relevant |
At a guess you have to have entered a chat before you can know what's in it? |
But from an integrations point of view, if I as a user query the im.counters endpoint to see how many messages I have unread, getting a null from a chat that has unread messages is confusing i think |
I'll refer it to the team but I'm not sure there'll be a rush to look at it. |
Taking for internal review from engineering |
We have confirmed the bug on our end. We will address the fix internally. |
Description:
When querying the im.counters endpoint for a user that has never entered the chat, the unreads counter returns null instead of the total number of messages in the room.
Steps to reproduce:
Expected behavior:
The unreads variable shows the same number of messages as the msgs variable.
Actual behavior:
The unreads variable returns null
Server Setup Information:
The text was updated successfully, but these errors were encountered: