RocketChat / RocketChat/Rocket.Chat

Wrong number of users in channels reported by Directory feature

Open
#14,463 0 comments 0 reactions 1 assignee View on GitHub

@sampaiodiego is already working on this.

Since May 11, 2019.

type: bug
Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Directory shows list of channels and number of users in each channel.
Numbers are wrong.

Steps to reproduce:
  1. Go to Directory -> Channels
  2. Check number of users
  3. Go to channel
  4. Check info
Expected behavior:

Number of users match

Actual behavior:

Number of users doesn't match

For example, general channel
chat_number_users_big
Directory listing reports 6002 users.
chat_users_channel
Channel info reports 69813 (proper value).
There are also channels where directory reports negative number of users:
chat_number_users_small
While in fact there are 202 and 450 users respectively.

Server Setup Information:
  • Version of Rocket.Chat Server: 1.0.3 (same issue was before upgrade)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.