From dbf43ae016221ca26d4804b6cfe2014652952004 Mon Sep 17 00:00:00 2001 From: John Livingston Date: Wed, 31 May 2023 16:34:27 +0200 Subject: [PATCH] Prosody recommended version is 0.12.x. --- CHANGELOG.md | 7 ++++++- server/lib/diagnostic/prosody.ts | 6 +++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bb073ac..3d943092 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 6.4.0-alpha.5 +## 6.4.0 (Not Released Yet) ### Importante Notes @@ -8,6 +8,10 @@ If you enabled external XMPP connection with plugin v6.3.0, and are not using the standard 5269 port, you must add and additional DNS SRV record. Check the [documentation](https://johnxlivingston.github.io/peertube-plugin-livechat/documentation/admin/advanced/xmpp_clients/). +If you are using ["system Prosody"](https://johnxlivingston.github.io/peertube-plugin-livechat/documentation/admin/settings/#use-system-prosody), +please not that this version will only properly work with Prosody >= 0.12.0. +If you are using an older version, Chat Federation could be broken, and it could have some unexpected behaviour. + ### New Features * Chat Federation: @@ -31,6 +35,7 @@ TODO?: allow directs2s on one side and websocket on the other? (currently disall * Prosody AppImage: hidden debug mode to disable lua-unbound, that seems broken in some docker dev environments. * Debug Mode: can change some parameters. * Fix use case where self-signed certificates are missing. +* Prosody recommended version is now 0.12.x. ## 6.3.0 diff --git a/server/lib/diagnostic/prosody.ts b/server/lib/diagnostic/prosody.ts index f8c3961b..dec90d76 100644 --- a/server/lib/diagnostic/prosody.ts +++ b/server/lib/diagnostic/prosody.ts @@ -146,10 +146,10 @@ export async function diagProsody (test: string, options: RegisterServerOptions) const minor = versionMatches[2] const patch = versionMatches[3] ?? versionMatches[4] result.messages.push(`Prosody version is ${major}.${minor}.${patch}`) - if (major !== '0' && minor !== '11') { + if (major !== '0' && minor !== '12') { result.messages.push({ - level: parseInt(minor) < 11 ? 'error' : 'warning', - message: 'Warning: recommended Prosody version is 0.11.x' + level: parseInt(minor) < 12 ? 'error' : 'warning', + message: 'Warning: recommended Prosody version is 0.12.x' }) } }