diff options
author | Till <2353100+S7evinK@users.noreply.github.com> | 2022-04-28 18:53:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-28 18:53:28 +0200 |
commit | 2a5b8e0306a283aa8ca64822d59d71479ffba59a (patch) | |
tree | ce014c70033cafc9afdb6db5959ba4d8672bd7df /syncapi/storage/shared | |
parent | c6ea2c9ff26ca6ae4c799db08a3f72c6b4d99256 (diff) |
Only load members of newly joined rooms (#2389)
* Only load members of newly joined rooms
* Comment that the query is prepared at runtime
Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
Diffstat (limited to 'syncapi/storage/shared')
-rw-r--r-- | syncapi/storage/shared/syncserver.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/syncapi/storage/shared/syncserver.go b/syncapi/storage/shared/syncserver.go index b7d2d3a2..ec5edd35 100644 --- a/syncapi/storage/shared/syncserver.go +++ b/syncapi/storage/shared/syncserver.go @@ -168,6 +168,10 @@ func (d *Database) AllJoinedUsersInRooms(ctx context.Context) (map[string][]stri return d.CurrentRoomState.SelectJoinedUsers(ctx) } +func (d *Database) AllJoinedUsersInRoom(ctx context.Context, roomIDs []string) (map[string][]string, error) { + return d.CurrentRoomState.SelectJoinedUsersInRoom(ctx, roomIDs) +} + func (d *Database) AllPeekingDevicesInRooms(ctx context.Context) (map[string][]types.PeekingDevice, error) { return d.Peeks.SelectPeekingDevices(ctx) } |