Skip to content

Commit

Permalink
Merge branch 'develop' into madlittlemods/msc3575-sliding-sync-0.0.1
Browse files Browse the repository at this point in the history
Conflicts:
	synapse/storage/databases/main/roommember.py
  • Loading branch information
MadLittleMods committed Jun 4, 2024
2 parents 54dbc27 + 7d8f0ef commit f6a5905
Show file tree
Hide file tree
Showing 27 changed files with 71 additions and 33 deletions.
54 changes: 54 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,57 @@
# Synapse 1.109.0rc1 (2024-06-04)

### Features

- Add the ability to auto-accept invites on the behalf of users. See the [`auto_accept_invites`](https://element-hq.github.io/synapse/latest/usage/configuration/config_documentation.html#auto-accept-invites) config option for details. ([\#17147](https://github.com/element-hq/synapse/issues/17147))
- Add experimental [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575) Sliding Sync `/sync/e2ee` endpoint for to-device messages and device encryption info. ([\#17167](https://github.com/element-hq/synapse/issues/17167))
- Support [MSC3916](https://github.com/matrix-org/matrix-spec-proposals/issues/3916) by adding unstable media endpoints to `/_matrix/client`. ([\#17213](https://github.com/element-hq/synapse/issues/17213))
- Add logging to tasks managed by the task scheduler, showing CPU and database usage. ([\#17219](https://github.com/element-hq/synapse/issues/17219))

### Bugfixes

- Fix deduplicating of membership events to not create unused state groups. ([\#17164](https://github.com/element-hq/synapse/issues/17164))
- Fix bug where duplicate events could be sent down sync when using workers that are overloaded. ([\#17215](https://github.com/element-hq/synapse/issues/17215))
- Ignore attempts to send to-device messages to bad users, to avoid log spam when we try to connect to the bad server. ([\#17240](https://github.com/element-hq/synapse/issues/17240))
- Fix handling of duplicate concurrent uploading of device one-time-keys. ([\#17241](https://github.com/element-hq/synapse/issues/17241))
- Fix reporting of default tags to Sentry, such as worker name. Broke in v1.108.0. ([\#17251](https://github.com/element-hq/synapse/issues/17251))
- Fix bug where typing updates would not be sent when using workers after a restart. ([\#17252](https://github.com/element-hq/synapse/issues/17252))

### Improved Documentation

- Update the LemonLDAP documentation to say that claims should be explicitly included in the returned `id_token`, as Synapse won't request them. ([\#17204](https://github.com/element-hq/synapse/issues/17204))

### Internal Changes

- Improve DB usage when fetching related events. ([\#17083](https://github.com/element-hq/synapse/issues/17083))
- Log exceptions when failing to auto-join new user according to the `auto_join_rooms` option. ([\#17176](https://github.com/element-hq/synapse/issues/17176))
- Reduce work of calculating outbound device lists updates. ([\#17211](https://github.com/element-hq/synapse/issues/17211))
- Improve performance of calculating device lists changes in `/sync`. ([\#17216](https://github.com/element-hq/synapse/issues/17216))
- Move towards using `MultiWriterIdGenerator` everywhere. ([\#17226](https://github.com/element-hq/synapse/issues/17226))
- Replaces all usages of `StreamIdGenerator` with `MultiWriterIdGenerator`. ([\#17229](https://github.com/element-hq/synapse/issues/17229))
- Change the `allow_unsafe_locale` config option to also apply when setting up new databases. ([\#17238](https://github.com/element-hq/synapse/issues/17238))
- Fix errors in logs about closing incorrect logging contexts when media gets rejected by a module. ([\#17239](https://github.com/element-hq/synapse/issues/17239), [\#17246](https://github.com/element-hq/synapse/issues/17246))
- Clean out invalid destinations from `device_federation_outbox` table. ([\#17242](https://github.com/element-hq/synapse/issues/17242))
- Stop logging errors when receiving invalid User IDs in key querys requests. ([\#17250](https://github.com/element-hq/synapse/issues/17250))



### Updates to locked dependencies

* Bump anyhow from 1.0.83 to 1.0.86. ([\#17220](https://github.com/element-hq/synapse/issues/17220))
* Bump bcrypt from 4.1.2 to 4.1.3. ([\#17224](https://github.com/element-hq/synapse/issues/17224))
* Bump lxml from 5.2.1 to 5.2.2. ([\#17261](https://github.com/element-hq/synapse/issues/17261))
* Bump mypy-zope from 1.0.3 to 1.0.4. ([\#17262](https://github.com/element-hq/synapse/issues/17262))
* Bump phonenumbers from 8.13.35 to 8.13.37. ([\#17235](https://github.com/element-hq/synapse/issues/17235))
* Bump prometheus-client from 0.19.0 to 0.20.0. ([\#17233](https://github.com/element-hq/synapse/issues/17233))
* Bump pyasn1 from 0.5.1 to 0.6.0. ([\#17223](https://github.com/element-hq/synapse/issues/17223))
* Bump pyicu from 2.13 to 2.13.1. ([\#17236](https://github.com/element-hq/synapse/issues/17236))
* Bump pyopenssl from 24.0.0 to 24.1.0. ([\#17234](https://github.com/element-hq/synapse/issues/17234))
* Bump serde from 1.0.201 to 1.0.202. ([\#17221](https://github.com/element-hq/synapse/issues/17221))
* Bump serde from 1.0.202 to 1.0.203. ([\#17232](https://github.com/element-hq/synapse/issues/17232))
* Bump twine from 5.0.0 to 5.1.0. ([\#17225](https://github.com/element-hq/synapse/issues/17225))
* Bump types-psycopg2 from 2.9.21.20240311 to 2.9.21.20240417. ([\#17222](https://github.com/element-hq/synapse/issues/17222))
* Bump types-pyopenssl from 24.0.0.20240311 to 24.1.0.20240425. ([\#17260](https://github.com/element-hq/synapse/issues/17260))

# Synapse 1.108.0 (2024-05-28)

No significant changes since 1.108.0rc1.
Expand Down
1 change: 0 additions & 1 deletion changelog.d/17083.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17147.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17164.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17167.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17176.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17204.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17211.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17213.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17215.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17216.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17219.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17226.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17229.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17238.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17239.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17240.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17241.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17242.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17246.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17250.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17251.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17252.bugfix

This file was deleted.

6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
matrix-synapse-py3 (1.109.0~rc1) stable; urgency=medium

* New Synapse release 1.109.0rc1.

-- Synapse Packaging team <packages@matrix.org> Tue, 04 Jun 2024 09:42:46 +0100

matrix-synapse-py3 (1.108.0) stable; urgency=medium

* New Synapse release 1.108.0.
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module-name = "synapse.synapse_rust"

[tool.poetry]
name = "matrix-synapse"
version = "1.108.0"
version = "1.109.0rc1"
description = "Homeserver for the Matrix decentralised comms protocol"
authors = ["Matrix.org Team and Contributors <packages@matrix.org>"]
license = "AGPL-3.0-or-later"
Expand Down
12 changes: 6 additions & 6 deletions synapse/storage/databases/main/roommember.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,12 +490,12 @@ def _get_rooms_for_local_user_where_membership_is_txn(
txn.execute(sql, (user_id, *args))
results = [
RoomsForUser(
room_id,
sender,
membership,
event_id,
PersistedEventPosition(instance_name, stream_ordering),
room_version,
room_id=room_id,
sender=sender,
membership=membership,
event_id=event_id,
event_pos=PersistedEventPosition(instance_name, stream_ordering),
room_version_id=room_version,
)
for room_id, sender, membership, event_id, instance_name, stream_ordering, room_version in txn
]
Expand Down

0 comments on commit f6a5905

Please sign in to comment.