mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Bump supported matrix versions to 1.9
This commit is contained in:
parent
7c2a152cfb
commit
9c2d50bb86
2 changed files with 12 additions and 2 deletions
|
@ -180,12 +180,17 @@ LoginPage::checkHomeserverVersion()
|
||||||
"v1.3",
|
"v1.3",
|
||||||
"v1.4",
|
"v1.4",
|
||||||
"v1.5",
|
"v1.5",
|
||||||
|
"v1.6",
|
||||||
|
"v1.7",
|
||||||
|
"v1.8",
|
||||||
|
"v1.9",
|
||||||
};
|
};
|
||||||
return supported.count(v) != 0;
|
return supported.count(v) != 0;
|
||||||
}) == versions.versions.cend()) {
|
}) == versions.versions.cend()) {
|
||||||
emit versionErrorCb(
|
emit versionErrorCb(
|
||||||
tr("The selected server does not support a version of the Matrix protocol, that this "
|
tr("The selected server does not support a version of the Matrix protocol, that this "
|
||||||
"client understands (v1.1 to v1.5). You can't sign in."));
|
"client understands (%1 to %2). You can't sign in.")
|
||||||
|
.arg(u"v1.1", u"v1.9"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -135,12 +135,17 @@ RegisterPage::versionsCheck()
|
||||||
"v1.3",
|
"v1.3",
|
||||||
"v1.4",
|
"v1.4",
|
||||||
"v1.5",
|
"v1.5",
|
||||||
|
"v1.6",
|
||||||
|
"v1.7",
|
||||||
|
"v1.8",
|
||||||
|
"v1.9",
|
||||||
};
|
};
|
||||||
return supported.count(v) != 0;
|
return supported.count(v) != 0;
|
||||||
}) == versions.versions.cend()) {
|
}) == versions.versions.cend()) {
|
||||||
emit setHsError(
|
emit setHsError(
|
||||||
tr("The selected server does not support a version of the Matrix protocol that "
|
tr("The selected server does not support a version of the Matrix protocol that "
|
||||||
"this client understands (v1.1 to v1.5). You can't register."));
|
"this client understands (%1 to %2). You can't register.")
|
||||||
|
.arg(u"v1.1", u"v1.9"));
|
||||||
emit hsErrorChanged();
|
emit hsErrorChanged();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue