lock and unlock should now broadcast to the hall. Users trying to enter if hall is locked should now get message indicating the hall is locked. Removed redundant start with options. Browser requests mic permissions, also there is a mute option in the ui itself, so this seemed superfluous

This commit is contained in:
Storm Dragon
2026-05-22 02:10:50 -04:00
parent 47d13083f9
commit aac197ef54
6 changed files with 111 additions and 23 deletions
+12 -7
View File
@@ -2278,8 +2278,7 @@ function gotUserMessage(id, dest, username, time, privileged, kind, error, messa
switch(kind) {
case 'kicked':
case 'error':
case 'warning':
case 'info': {
case 'warning': {
if(!privileged) {
console.error(`Got unprivileged message of kind ${kind}`);
return;
@@ -2288,6 +2287,16 @@ function gotUserMessage(id, dest, username, time, privileged, kind, error, messa
displayError(`${from} said: ${message}`, kind);
break;
}
case 'info': {
if(!privileged) {
console.error(`Got unprivileged message of kind ${kind}`);
return;
}
let text = '' + message;
localMessage(text);
displayMessage(text);
break;
}
case 'recording': {
if(!privileged) {
console.error(`Got unprivileged message of kind ${kind}`);
@@ -3589,11 +3598,7 @@ document.getElementById('loginform').onsubmit = async function(e) {
setVisibility('passwordform', true);
if(getInputElement('presentmike').checked)
presentRequested = 'mike';
else
presentRequested = null;
getInputElement('presentmike').checked = true;
presentRequested = 'mike';
// Connect to the server, gotConnected will join.
serverConnect();