synapse/changelog.d
Eric Eastwood 265ee88f34
Wrong retention policy being used when filtering events (lint ControlVarUsedAfterBlockViolation WPS441) (#17272)
Fix loop var being used outside block.

Before this change, we were always using the last room_id's retention policy for all events being filtered.

I found this bug with the [new lint rule, `ControlVarUsedAfterBlockViolation` `WPS441`](https://github.com/astral-sh/ruff/pull/11769), that I re-implemented in `ruff`. Shout-out to @reivilibre for all the help in the beginning! 

### Pull Request Checklist

<!-- Please read
https://element-hq.github.io/synapse/latest/development/contributing_guide.html
before submitting your pull request -->

* [x] Pull request is based on the develop branch
* [x] Pull request includes a [changelog
file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog).
The entry should:
- Be a short description of your change which makes sense to users.
"Fixed a bug that prevented receiving messages from other servers."
instead of "Moved X method from `EventStore` to `EventWorkerStore`.".
  - Use markdown where necessary, mostly for `code blocks`.
  - End with either a period (.) or an exclamation mark (!).
  - Start with a capital letter.
- Feel free to credit yourself, by adding a sentence "Contributed by
@github_username." or "Contributed by [Your Name]." to the end of the
entry.
* [x] [Code
style](https://element-hq.github.io/synapse/latest/code_style.html) is
correct
(run the
[linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters))
2024-06-10 09:48:38 -05:00
..
.gitignore Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
17172.feature Support MSC3916 by adding a federation /download endpoint (#17172) 2024-06-07 13:54:28 +01:00
17187.feature Add Sliding Sync /sync endpoint (initial implementation) (#17187) 2024-06-06 14:44:32 -05:00
17254.bugfix Handle hyphens in user dir search porperly (#17254) 2024-06-05 10:40:34 +01:00
17256.feature Ratelimiting of remote media downloads (#17256) 2024-06-05 13:43:36 +01:00
17265.misc Use fully-qualified PersistedEventPosition when returning RoomsForUser (#17265) 2024-06-04 12:58:03 -05:00
17266.misc Add debug logging for when room keys are uploaded, including whether they are replacing other room keys. (#17266) 2024-06-07 12:01:21 +01:00
17271.misc Handle OTK uploads off master (#17271) 2024-06-06 17:47:02 +01:00
17272.bugfix Wrong retention policy being used when filtering events (lint ControlVarUsedAfterBlockViolation WPS441) (#17272) 2024-06-10 09:48:38 -05:00
17273.misc Don't try and resync devices for down hosts (#17273) 2024-06-06 17:46:52 +01:00
17275.bugfix Always return OTK counts (#17275) 2024-06-06 17:10:58 +01:00