diff --git a/CHANGELOG.md b/CHANGELOG.md index 60473e31..496cb11f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * Spanish translations (thanks [rnek0](https://github.com/rnek0)). * Hide secret keys in diagnostic tool. +* Builtin ConverseJS mode: fix advanced controls hiding. ## v5.0.2 diff --git a/conversejs/builtin.ts b/conversejs/builtin.ts index 3a273644..ccc5ad03 100644 --- a/conversejs/builtin.ts +++ b/conversejs/builtin.ts @@ -81,7 +81,7 @@ interface InitConverseParams { boshServiceUrl: string websocketServiceUrl: string authenticationUrl: string - advancedControls: 'true' | 'false' + advancedControls: boolean theme: string } window.initConverse = async function initConverse ({ diff --git a/conversejs/index.html b/conversejs/index.html index 61720e8e..3c8c6b97 100644 --- a/conversejs/index.html +++ b/conversejs/index.html @@ -21,7 +21,7 @@ boshServiceUrl: '{{BOSH_SERVICE_URL}}', websocketServiceUrl: '{{WS_SERVICE_URL}}', authenticationUrl: '{{AUTHENTICATION_URL}}', - advancedControls: '{{ADVANCEDCONTROLS}}', + advancedControls: '{{ADVANCEDCONTROLS}}' === 'true', theme: '{{CONVERSEJS_THEME}}' })