Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] Spotlight search when view-outside-room is false (#14930) #16897

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

TheoKouzelis
Copy link

[FIX] For bug fixes

Closes #14930

When view-outside-room is set to false, the spotlight search will now return search users who are subscribed to the same rooms as the logged in user.

Previous behaviour was to always return empty results, because the variable rid was never set.

@ggazzo
Copy link
Member

ggazzo commented Apr 14, 2020

looks perfect to me (the behavior) but its quite expensive too what do you think @sampaiodiego ?

@sampaiodiego
Copy link
Member

this is indeed somewhat expensive.. specially to spotlight, that is trigger for each typed character.

I thought maybe searching direct on subscription's fields like u.name and u.username, so one trip to mongo can be reduced, but are no indexes there and I'm not sure without a deeper look, if the data there is reliable.

Maybe one thing that can be done is to store usersWithSameSubscriptions in mem cache.. so it doesn't need to hit the DB every time to get that info.

@AllRWeak
Copy link

AllRWeak commented Oct 8, 2020

Hello

Any updates on this fix? This is something that we could really use to keep the number of different servers down.

@CLAassistant
Copy link

CLAassistant commented Dec 17, 2021

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restricted user can not see all accessible other users in the Directory (no permission view-outside-room)
6 participants