mirror of
https://codeberg.org/june64/mrvc.git
synced 2026-01-10 16:06:33 +01:00
fix typo
Signed-off-by: HarHarLinks <HarHarLinks@noreply.codeberg.org>
This commit is contained in:
parent
29e99b708c
commit
11e59fd750
2 changed files with 3 additions and 3 deletions
|
|
@ -10,7 +10,7 @@ Room:
|
||||||
Given Aliases:
|
Given Aliases:
|
||||||
#element-x-ios:matrix.org
|
#element-x-ios:matrix.org
|
||||||
Version Support:
|
Version Support:
|
||||||
unkown -> 103
|
unknown -> 103
|
||||||
...
|
...
|
||||||
unknown -> 101
|
unknown -> 101
|
||||||
unknown -> 101
|
unknown -> 101
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ func getMaxRoomVersion(serverVersionInfo fclient.Version) string {
|
||||||
// Use only the first part of the version string as sometimes there are suffixes after a space, like " (<commit>)", which then can't be parsed.
|
// Use only the first part of the version string as sometimes there are suffixes after a space, like " (<commit>)", which then can't be parsed.
|
||||||
serverVersion, err := version.NewVersion(strings.Split(serverVersionInfo.Server.Version, " ")[0])
|
serverVersion, err := version.NewVersion(strings.Split(serverVersionInfo.Server.Version, " ")[0])
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "unkown"
|
return "unknown"
|
||||||
}
|
}
|
||||||
|
|
||||||
switch serverVersionInfo.Server.Name {
|
switch serverVersionInfo.Server.Name {
|
||||||
|
|
@ -191,6 +191,6 @@ func getMaxRoomVersion(serverVersionInfo fclient.Version) string {
|
||||||
// https://github.com/matrix-construct/tuwunel/blob/9b658d86b2f49d01ba8d2f5ae7f263a104e8f282/src/core/info/room_version.rs
|
// https://github.com/matrix-construct/tuwunel/blob/9b658d86b2f49d01ba8d2f5ae7f263a104e8f282/src/core/info/room_version.rs
|
||||||
return "v11"
|
return "v11"
|
||||||
default:
|
default:
|
||||||
return "unkown"
|
return "unknown"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue