Skip to content

[BUG] Move client-side query search logic to Spotlight API #8205

@rafaelks

Description

@rafaelks

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.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions