Auto viewer mode (WIP).

This commit is contained in:
John Livingston 2022-01-07 19:28:07 +01:00
parent 9a4608863b
commit 4e69a2d8e6
No known key found for this signature in database
GPG Key ID: B17B5640CE66CDBC
3 changed files with 9 additions and 5 deletions

View File

@ -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.

View File

@ -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;
}
}
}

View File

@ -32,9 +32,7 @@ export default (o) => {
</fieldset>
</form>
</div>
<span class="livechat-viewer-mode-panel">
${tplMucBottomPanel(o)}
</span>`
${tplMucBottomPanel(o)}`
}
return tplMucBottomPanel(o)
}