diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-10-05 12:47:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-05 12:47:53 +0100 |
commit | c85bc3434fc930423e9e27c8bca9b31b5ad7a441 (patch) | |
tree | a0957de84c44143571cd785d4794c7a979d02b53 /roomserver/internal/query | |
parent | 6f602bb0969fac6d455de1088bf3980f77a4017f (diff) |
Optimise `QuerySharedUsers` so that we can only work on local users (#2766)
Otherwise the sync API key change consumer wastes a lot of time trying
to wake up the notifiers for non-local users.
Diffstat (limited to 'roomserver/internal/query')
-rw-r--r-- | roomserver/internal/query/query.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/internal/query/query.go b/roomserver/internal/query/query.go index b41a92e9..ee8e1cfe 100644 --- a/roomserver/internal/query/query.go +++ b/roomserver/internal/query/query.go @@ -799,7 +799,7 @@ func (r *Queryer) QuerySharedUsers(ctx context.Context, req *api.QuerySharedUser } roomIDs = roomIDs[:j] - users, err := r.DB.JoinedUsersSetInRooms(ctx, roomIDs, req.OtherUserIDs) + users, err := r.DB.JoinedUsersSetInRooms(ctx, roomIDs, req.OtherUserIDs, req.LocalOnly) if err != nil { return err } |