Skip to content
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

Open
e-o-j opened this issue Sep 17, 2024 · 1 comment
Open

Unexpected behaviour in im.counters endpont API #33301

e-o-j opened this issue Sep 17, 2024 · 1 comment

Comments

@e-o-j
Copy link

e-o-j commented Sep 17, 2024

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:

  1. Open a direct message conversation between two users
  2. Send some messages from one of the users
  3. Query the im.counters endpoint with the userId of the other user of the conversation

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:

  • Version of Rocket.Chat Server: 6.10.2
  • License Type: Community
  • Number of Users: 479
  • Operating System: Debian 12 (bookworm)
  • Deployment Method: docker
  • Number of Running Instances: 1
@reetp
Copy link

reetp commented Sep 17, 2024

Version of Rocket.Chat Server: 6.10.2

Have you tested on latest?

Please do and let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants