Merge branch 'main' into neilalexander/presencecompletesync

This commit is contained in:
Neil Alexander 2022-04-26 17:05:39 +01:00
commit b11388e6b7
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -52,8 +52,8 @@ func newSyncRequest(req *http.Request, device userapi.Device, syncDB storage.Dat
// Send as much account data down for complete syncs as possible
// by default, otherwise clients do weird things while waiting
// for the rest of the data to trickle down.
filter.AccountData.Limit = math.MaxInt
filter.Room.AccountData.Limit = math.MaxInt
filter.AccountData.Limit = math.MaxInt32
filter.Room.AccountData.Limit = math.MaxInt32
}
filterQuery := req.URL.Query().Get("filter")
if filterQuery != "" {