aboutsummaryrefslogtreecommitdiff
path: root/syncapi/sync
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-07-15 16:25:26 +0100
committerGitHub <noreply@github.com>2022-07-15 16:25:26 +0100
commit90bf01d8b107375d45aee9de79c1760a0363b189 (patch)
treee6220a07f788cbf27d9d13f10fd2d442b9b980f6 /syncapi/sync
parent69c86295f70b6756913df0bba37e30e0b3a6070e (diff)
Use sync API database in `filterSharedUsers` (#2572)
* Add function to the sync API storage package for filtering shared users * Use the database instead of asking the RS API * Fix unit tests * Fix map handling in `filterSharedUsers`
Diffstat (limited to 'syncapi/sync')
-rw-r--r--syncapi/sync/requestpool.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/syncapi/sync/requestpool.go b/syncapi/sync/requestpool.go
index 6f0849e0..b6b4779a 100644
--- a/syncapi/sync/requestpool.go
+++ b/syncapi/sync/requestpool.go
@@ -429,7 +429,7 @@ func (rp *RequestPool) OnIncomingKeyChangeRequest(req *http.Request, device *use
}
rp.streams.PDUStreamProvider.IncrementalSync(req.Context(), syncReq, fromToken.PDUPosition, toToken.PDUPosition)
_, _, err = internal.DeviceListCatchup(
- req.Context(), rp.keyAPI, rp.rsAPI, syncReq.Device.UserID,
+ req.Context(), rp.db, rp.keyAPI, rp.rsAPI, syncReq.Device.UserID,
syncReq.Response, fromToken.DeviceListPosition, toToken.DeviceListPosition,
)
if err != nil {