RocketChat / RocketChat/Rocket.Chat.ReactNative

bug: directory view shows empty results when switching from empty Teams filter to Users or Channels

Open
#6,879 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
2.4k
Forks
1.5k
Avg merge
1d 18h
Merged PRs (30d)
90

Description

Description

When navigating in the Directory view, switching from the Teams filter (which has no data) to Users or Channels filters incorrectly displays empty results, even though Users and Channels have data available.

Steps to Reproduce

  1. Open the Directory view
  2. Navigate to the Teams filter (assuming Teams is empty/has no data)
  3. Switch to Users filter
  4. Observe that Users shows empty results (even though users exist)
  5. Switch to Channels filter
  6. Observe that Channels also shows empty results (even though channels exist)

Expected Behavior

When switching between directory filters (Users, Teams, Channels), each filter should display its respective data correctly, regardless of the previous filter's state or data availability.

Actual Behavior

When switching from an empty Teams filter to Users or Channels, those filters incorrectly display as empty even when they contain data.

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.

Research direction

Start by reproducing the issue in the Directory view, switching from an empty Teams filter to Users and Channels. Trace the filter-switching behavior and verify that each filter displays its available data regardless of the previous filter's state.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
frontend, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.