Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

bug: directory view shows infinite loader when filtering users or searching

Open deepak0x opened this issue 11 months ago • 5 comments

Describe the Bug

The Directory screen shows a constant loading indicator when filtering to "users" or entering a search query, and no results are displayed.

Steps to Reproduce

Open the Directory screen Tap the filter icon Select "Users" Or type a search query in the search box

Expected Behavior

Results should load and display Loading indicator should stop when results are fetched Search should return matching users

Actual Behavior

Loading indicator appears and never stops No results are displayed Search input doesn't return any results

Image

Rocket.Chat Server Version

NA

Rocket.Chat App Version

4.68.0

Device Name

NA

OS Version

NA

Additional Context

No response

deepak0x avatar Jan 04 '26 16:01 deepak0x

Hi @deepak0x, I have reviewed this issue and I think the loading state might not be getting cleared after users filter request resolves . I believe it is possibly a missing state update or API response handling. I would like to work on this issue and propose a fix. Hence could you please assign this issue to me?

shrutisachan08 avatar Jan 05 '26 15:01 shrutisachan08

Hi @deepak0x and maintainers 👋,

I’d like to work on this issue as well. From the description, it seems the loading state in the Directory screen is not being cleared correctly when:

  • switching to the "Users" filter, or
  • performing a search query

My plan is to(Approach):

  • reproduce the issue locally
  • trace the users filter / search request lifecycle
  • ensure the loading state is properly reset once the API response (success or error) is received

If there’s no ongoing PR for this, I’ll proceed with investigating and propose a fix.

Thanks!

Pallavi778 avatar Jan 19 '26 07:01 Pallavi778

Hi @deepak0x , I’ve started working on this issue and will share a PR soon. Please let me know if anyone else is already working on it.

Pallavi778 avatar Jan 20 '26 13:01 Pallavi778

hey @Pallavi778 actually this issue only occur in open workspace not in custom workspace have to take more info from maintainers about it that's why i keep it open... Will work on it once maintainer give some views on this...

Also you can explore codebase and raise issues too

deepak0x avatar Jan 21 '26 16:01 deepak0x

Thanks for the clarification @deepak0x.

Got it — I’ll look into the difference between open and custom workspaces on the Directory flow and keep an eye on maintainer feedback before proceeding further. Meanwhile, I’ll continue exploring the codebase and related permission handling.

Thanks!

Pallavi778 avatar Jan 23 '26 07:01 Pallavi778