Skip to content

Commit

Permalink
Synapse 1.62 (matrix-org#1372)
Browse files Browse the repository at this point in the history
  • Loading branch information
babolivier authored and thibaultamartin committed Aug 29, 2022
1 parent 899f5e1 commit a5f3501
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions gatsby/content/blog/2022/06/2022-07-06-synapse-1.62.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
---
date: '2022-07-06'
title: Synapse 1.62 released
categories:
- Releases
author: Brendan Abolivier
---

Hey all, [Synapse
1.62](/~https://github.com/matrix-org/synapse/releases/tag/v1.62.0) is out! Let's
have a look inside.

## Spam checker improvements

In the past few weeks, the Synapse team has been working with the Matrix.org
Trust & Safety team to help module developers build more efficient protections
against spam. As a consequence of this work, Synapse 1.62 introduces new ways
for modules to communicate the result of actions taken against a specific
message or operation through the [spam checker module
callbacks](https://matrix-org.github.io/synapse/v1.62/modules/spam_checker_callbacks.html).

Previously, most spam checker callbacks would be expected to return a boolean
indicating whether a specific operation should be qualified as spam. Starting
from Synapse 1.62, modules are now expected to return either
`synapse.module_api.NOT_SPAM` (to indicate an action is not spammy), or an error
code that is part of `synapse.module_api.errors.Codes`.

Note that the previous behaviour is still supported but is now deprecated, and
will be removed in a future version of Synapse.

See [the upgrade
notes](https://matrix-org.github.io/synapse/v1.62/upgrade.html#new-signatures-for-spam-checker-callbacks)
for a list of the affected callbacks and an example of this change. Note that on
top of the list described there, the `check_event_for_spam` callback was also
[updated with a similar
change](https://matrix-org.github.io/synapse/v1.62/upgrade.html#new-signature-for-the-spam-checker-callback-check_event_for_spam)
in Synapse 1.61.

## Everything else

This release of Synapse includes important performance improvements around
syncing, specifically around handling device lists and notifications.

Synapse 1.62 also introduce a changes of its optional dependency on the [LDAP3
authentication provider
module](/~https://github.com/matrix-org/matrix-synapse-ldap3) to
[v0.2.1](/~https://github.com/matrix-org/matrix-synapse-ldap3/releases/tag/v0.2.1)
in order to fix an issue with usernames that include uppercase characters.

See the [full
changelog](/~https://github.com/matrix-org/synapse/releases/tag/v1.62.0) for a
complete list of changes in this release. Also please have a look at the
[upgrade
notes](https://matrix-org.github.io/synapse/v1.62/upgrade#upgrading-to-v1620)
for this version.

Synapse is a Free and Open Source Software project, and we'd like to extend our
thanks to everyone who contributed to this release, including (in no particular
order) [Beeper](https://www.beeper.com/), [Sami
Olmari](/~https://github.com/olmari), [Daniel
Aloni](/~https://github.com/Danieloni1),
[Thumbscrew](/~https://github.com/Thumbscrew) and [Hannes
Lerchl](/~https://github.com/aytchell).

0 comments on commit a5f3501

Please sign in to comment.