github element-hq/synapse v1.152.0rc1

pre-release13 hours ago

Synapse 1.152.0rc1 (2026-04-22)

For deployments using workers, please note that this version introduces a new quarantined_media_changes stream writer, which may require configuration changes.
Please see the the relevant section in the upgrade notes for details.

Without configuring this new stream writer, only the main process will be able to handle the /media/quarantine admin API endpoints for quarantining media.

Features

Bugfixes

  • Reject device_keys: null in the request to POST /_matrix/client/v3/keys/upload, as per the spec. This was temporarily allowed as a workaround for misbehaving clients. (#19637)
  • Fix database migrations failing on platforms where SQLite is configured with SQLITE_DBCONFIG_DEFENSIVE by default, such as macOS. (#19690)
  • Fix a bug introduced in v1.145 where a non-admin could bypass admin checks for downloading remote quarantined media. This relied on the media already being previously present on the homeserver. (#19639)

Improved Documentation

  • Include a workaround for running the unit tests with SQLite under recent versions of MacOS. (#19615)
  • Fix Docker image link typo in worker docs. (#19645)
  • Update developer stream docs for creating a new stream to point out _setup_sequence(...) in portdb. (#19675)
  • Update the developer stream docs for creating a new stream to highlight places that require documentation updates. (#19696)

Internal Changes

  • Update CI to use re-usable Complement GitHub CI workflow. (#19533)
  • Fix docstring for limit argument in _maybe_backfill_inner(...). (#19630)
  • Document context for why increase timeout for policy server requests. (#19633)
  • Run lint script to format Complement tests introduced in #19509. (#19636)
  • Small simplifications to the events class. (#19680, #19712)
  • Introduce spam_checker_spammy internal event metadata. (#19453)
  • Add a FilteredEvent class that saves us copying events. (#19640)
  • Convert EventInternalMetadata to use Arc<RwLock<_>>. (#19669)

Don't miss a new synapse release

NewReleases is sending notifications on new releases.