1
0
Fork 0
mirror of https://codeberg.org/june64/mrvc.git synced 2026-01-09 23:52:54 +01:00

add Synapse Pro version with v12 support to max version check

This commit is contained in:
June 2025-08-18 19:27:32 +02:00
commit 91ddcef7ec
Signed by: june
SSH key fingerprint: SHA256:o9EAq4Y9N9K0pBQeBTqhSDrND5E7oB+60ZNx0U1yPe0

View file

@ -117,6 +117,18 @@ func getMaxRoomVersion(serverVersionInfo fclient.Version) string {
return "v6"
}
case "Synapse":
// If the version is a Synapse Pro one, check against known Synapse Pro versions first and then fallback to checking against regular Synapse versions.
// https://element.io/server-suite/synapse-pro
// https://docs.element.io/latest/element-server-suite-pro/release-notes/#ess-helm-pro-2581-2025-08-12
if strings.Contains(serverVersion.String(), "pro") {
switch {
// https://docs.element.io/latest/element-server-suite-pro/release-notes/#ess-helm-pro-2581-2025-08-12
// The release notes list the version as "v1.135.0-pro4", but versions in the wild show up as "1.135.0+pro.4".
case serverVersion.GreaterThanOrEqual(version.Must(version.NewVersion("1.135.0+pro.4"))):
return "v12"
}
}
// https://github.com/element-hq/synapse/
// https://element-hq.github.io/synapse/latest/
// https://github.com/element-hq/synapse/blob/develop/CHANGES.md