-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Description
Description:
The search in our web-client is handling a few logics that should be handled on the API: if user types #foo it should searches for only channels with foo in all the clients. Same thing for users when user searches by @foo.
This is making our native apps have different search results than our web client.
Rocket.Chat/packages/rocketchat-ui-sidenav/client/toolbar.js
Lines 151 to 161 in e20195a
| if (filterText[0] === '#') { | |
| filterText = filterText.slice(1); | |
| type.users = false; | |
| query.t = 'c'; | |
| } | |
| if (filterText[0] === '@') { | |
| filterText = filterText.slice(1); | |
| type.rooms = false; | |
| query.t = 'd'; | |
| } |
We need to move all this logic to our spotlight method.