summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorCadence Ember <cadence@disroot.org>2024-09-15 22:17:00 +1200
committerCadence Ember <cadence@disroot.org>2024-09-15 22:17:00 +1200
commit6a15f4fc0f7d9fdc97a85c19cc21026df438a7fe (patch)
tree58154f250aeec5fc57c3b7745b2e36dd973f3200 /scripts
parentTidy up repo (diff)
downloadout-of-your-element-6a15f4fc0f7d9fdc97a85c19cc21026df438a7fe.tar.xz
Check for Matrix v1.11 in setup
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/seed.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/seed.js b/scripts/seed.js

index 16be900..55ada69 100755 --- a/scripts/seed.js +++ b/scripts/seed.js
@@ -87,6 +87,9 @@ async function validateHomeserverOrigin(serverUrlPrompt, url) { if (res.status !== 200) return `There is no Matrix server at that URL (${url}/_matrix/client/versions returned ${res.status})` try { var json = await res.json() + if (!Array.isArray(json?.versions) || !json.versions.includes("v1.11")) { + return `OOYE needs Matrix version v1.11, but ${url} doesn't support this` + } } catch (e) { return `There is no Matrix server at that URL (${url}/_matrix/client/versions is not JSON)` }