From 37fcdf67c22ea1b741cdf83c548321a1348aabed Mon Sep 17 00:00:00 2001 From: PiotrKozimor <37144818+PiotrKozimor@users.noreply.github.com> Date: Thu, 8 Sep 2022 10:08:31 +0200 Subject: [PATCH] Ignore state limit in room filter (#35) --- syncapi/sync/request.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syncapi/sync/request.go b/syncapi/sync/request.go index 268ed70c6..52b68a710 100644 --- a/syncapi/sync/request.go +++ b/syncapi/sync/request.go @@ -79,8 +79,9 @@ func newSyncRequest(req *http.Request, device userapi.Device, syncDB storage.Dat // for the rest of the data to trickle down. filter.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{ "user_id": device.UserID,