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:
parent
b81d7e9b01
commit
91ddcef7ec
1 changed files with 12 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue