diff --git a/CHANGELOG.md b/CHANGELOG.md index d5d95be1..66b8cc6c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## ??? +### Features + +* Builtin Prosody: anonymous users connects automatically to the chat in a readonly mode. They must choose a nickname before they can chat. + ### Minor changes and fixes * Builtin Prosody: better random avatars quality. diff --git a/conversejs/custom/shared/styles/livechat.scss b/conversejs/custom/shared/styles/livechat.scss index 97bbac18..e55ef82a 100644 --- a/conversejs/custom/shared/styles/livechat.scss +++ b/conversejs/custom/shared/styles/livechat.scss @@ -47,7 +47,9 @@ body[livechat-viewer-mode="on"] { display: initial; } - .livechat-viewer-mode-panel { - display: none; + converse-muc-bottom-panel { + >:not(.livechat-viewer-mode-nick) { + display: none; + } } } diff --git a/conversejs/custom/templates/muc-bottom-panel.js b/conversejs/custom/templates/muc-bottom-panel.js index a06010d1..2854cfc6 100644 --- a/conversejs/custom/templates/muc-bottom-panel.js +++ b/conversejs/custom/templates/muc-bottom-panel.js @@ -32,9 +32,7 @@ export default (o) => { - - ${tplMucBottomPanel(o)} - ` + ${tplMucBottomPanel(o)}` } return tplMucBottomPanel(o) }