mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -06:00
Ignore state limit in room filter (#35)
This commit is contained in:
parent
8e6ae48f4a
commit
37fcdf67c2
|
|
@ -79,8 +79,9 @@ func newSyncRequest(req *http.Request, device userapi.Device, syncDB storage.Dat
|
||||||
// for the rest of the data to trickle down.
|
// for the rest of the data to trickle down.
|
||||||
filter.AccountData.Limit = math.MaxInt32
|
filter.AccountData.Limit = math.MaxInt32
|
||||||
filter.Room.AccountData.Limit = math.MaxInt32
|
filter.Room.AccountData.Limit = math.MaxInt32
|
||||||
filter.Room.State.Limit = math.MaxInt32
|
|
||||||
}
|
}
|
||||||
|
// Ignore state limit filter so that e.g. correct room name appears on clients.
|
||||||
|
filter.Room.State.Limit = math.MaxInt32
|
||||||
|
|
||||||
logger := util.GetLogger(req.Context()).WithFields(logrus.Fields{
|
logger := util.GetLogger(req.Context()).WithFields(logrus.Fields{
|
||||||
"user_id": device.UserID,
|
"user_id": device.UserID,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue