Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit b4eb163

Browse files
author
David Robertson
committed
Merge tag 'v1.59.0rc2' into develop
Synapse 1.59.0rc2 (2022-05-16) ============================== Synapse 1.59 makes several changes that server administrators should be aware of: - Device name lookup over federation is now disabled by default. ([\#12616](#12616)) - The `synapse.app.appservice` and `synapse.app.user_dir` worker application types are now deprecated. ([\#12452](#12452), [\#12654](#12654)) See [the upgrade notes](https://github.com/matrix-org/synapse/blob/develop/docs/upgrade.md#upgrading-to-v1590) for more details. Additionally, this release removes the non-standard `m.login.jwt` login type from Synapse. It can be replaced with `org.matrix.login.jwt` for identical behaviour. This is only used if `jwt_config.enabled` is set to `true` in the configuration. ([\#12597](#12597)) Bugfixes -------- - Fix a bug introduced in Synapse 1.58.0 where `/sync` would fail if the most recent event in a room was rejected. ([\#12729](#12729))
2 parents 8060034 + 6f04ae7 commit b4eb163

File tree

4 files changed

+29
-11
lines changed

4 files changed

+29
-11
lines changed

CHANGES.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Synapse 1.59.0rc1 (2022-05-10)
1+
Synapse 1.59.0rc2 (2022-05-16)
22
==============================
33

4-
This release makes several changes that server administrators should be aware of:
4+
Synapse 1.59 makes several changes that server administrators should be aware of:
55

66
- Device name lookup over federation is now disabled by default. ([\#12616](https://github.com/matrix-org/synapse/issues/12616))
77
- The `synapse.app.appservice` and `synapse.app.user_dir` worker application types are now deprecated. ([\#12452](https://github.com/matrix-org/synapse/issues/12452), [\#12654](https://github.com/matrix-org/synapse/issues/12654))
@@ -10,6 +10,15 @@ See [the upgrade notes](https://github.com/matrix-org/synapse/blob/develop/docs/
1010

1111
Additionally, this release removes the non-standard `m.login.jwt` login type from Synapse. It can be replaced with `org.matrix.login.jwt` for identical behaviour. This is only used if `jwt_config.enabled` is set to `true` in the configuration. ([\#12597](https://github.com/matrix-org/synapse/issues/12597))
1212

13+
Bugfixes
14+
--------
15+
16+
- Fix a bug introduced in Synapse 1.58.0 where `/sync` would fail if the most recent event in a room was rejected. ([\#12729](https://github.com/matrix-org/synapse/issues/12729))
17+
18+
19+
Synapse 1.59.0rc1 (2022-05-10)
20+
==============================
21+
1322
Features
1423
--------
1524

debian/changelog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
matrix-synapse-py3 (1.59.0~rc2) stable; urgency=medium
2+
3+
* New Synapse release 1.59.0rc2.
4+
5+
-- Synapse Packaging team <[email protected]> Mon, 16 May 2022 12:52:15 +0100
6+
17
matrix-synapse-py3 (1.59.0~rc1) stable; urgency=medium
28

39
* Adjust how the `exported-requirements.txt` file is generated as part of

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ skip_gitignore = true
5454

5555
[tool.poetry]
5656
name = "matrix-synapse"
57-
version = "1.59.0rc1"
57+
version = "1.59.0rc2"
5858
description = "Homeserver for the Matrix decentralised comms protocol"
5959
authors = ["Matrix.org Team and Contributors <[email protected]>"]
6060
license = "Apache-2.0"

synapse/storage/databases/main/stream.py

+11-8
Original file line numberDiff line numberDiff line change
@@ -743,14 +743,17 @@ async def get_room_event_before_stream_ordering(
743743
"""
744744

745745
def _f(txn: LoggingTransaction) -> Optional[Tuple[int, int, str]]:
746-
sql = (
747-
"SELECT stream_ordering, topological_ordering, event_id"
748-
" FROM events"
749-
" WHERE room_id = ? AND stream_ordering <= ?"
750-
" AND NOT outlier"
751-
" ORDER BY stream_ordering DESC"
752-
" LIMIT 1"
753-
)
746+
sql = """
747+
SELECT stream_ordering, topological_ordering, event_id
748+
FROM events
749+
LEFT JOIN rejections USING (event_id)
750+
WHERE room_id = ?
751+
AND stream_ordering <= ?
752+
AND NOT outlier
753+
AND rejections.reason IS NULL
754+
ORDER BY stream_ordering DESC
755+
LIMIT 1
756+
"""
754757
txn.execute(sql, (room_id, stream_ordering))
755758
return cast(Optional[Tuple[int, int, str]], txn.fetchone())
756759

0 commit comments

Comments
 (0)