diff --git a/CHANGELOG.md b/CHANGELOG.md index fa09382a..8ccc5133 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * This plugin is now using types declarations from the official @peertube/peertube-types package. * Builtin Prosody, Share chat url: fixed new day hidding when no scrollbar in readonly mode. +* Builtin Prosody: using ConverseJS clear_cache_on_logout=true and allow_user_trust_override=false parameters ## 5.4.0 diff --git a/conversejs/builtin.ts b/conversejs/builtin.ts index 9a92ccac..c284a1f4 100644 --- a/conversejs/builtin.ts +++ b/conversejs/builtin.ts @@ -175,6 +175,14 @@ window.initConverse = async function initConverse ({ let isAuthenticated: boolean = false if (authenticationUrl !== '') { + // We are in builtin-prosody mode. + // So the user will never se the «trusted browser» checkbox. + // So we have to disable it + // (and ensure clear_cache_on_logout is true, + // see https://conversejs.org/docs/html/configuration.html#allow-user-trust-override). + params.clear_cache_on_logout = true + params.allow_user_trust_override = false + const auth = await authenticatedMode(authenticationUrl) if (auth) { params.authentication = 'login' diff --git a/package-lock.json b/package-lock.json index f3e1dd24..b4e9535f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4280,9 +4280,9 @@ } }, "engine.io": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.1.0.tgz", - "integrity": "sha512-ErhZOVu2xweCjEfYcTdkCnEYUiZgkAcBBAhW4jbIvNG8SLU3orAqoJCiytZjYF7eTpVmmCrLDjLIEaPlUAs1uw==", + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/engine.io/-/engine.io-6.1.1.tgz", + "integrity": "sha512-AyMc20q8JUUdvKd46+thc9o7yCZ6iC6MoBCChG5Z1XmFMpp+2+y/oKvwpZTUJB0KCjxScw1dV9c2h5pjiYBLuQ==", "dev": true, "requires": { "@types/cookie": "^0.4.1",