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:
@@ -103,19 +103,6 @@
|
||||
<input id="password" type="password" name="password"
|
||||
autocomplete="current-password" class="form-control"/>
|
||||
</div>
|
||||
<fieldset>
|
||||
<legend>Enable at start:</legend>
|
||||
<div class="present-switch">
|
||||
<p class="switch-radio">
|
||||
<input id="presentoff" type="radio" name="presentradio" value=""/>
|
||||
<label for="presentoff">Nothing</label>
|
||||
</p>
|
||||
<p class="switch-radio">
|
||||
<input id="presentmike" type="radio" name="presentradio" value="mike" checked/>
|
||||
<label for="presentmike">Microphone</label>
|
||||
</p>
|
||||
</div>
|
||||
</fieldset>
|
||||
<div class="clear"></div>
|
||||
<div class="connect">
|
||||
<input id="connectbutton" type="submit" class="btn btn-blue" value="Connect"/>
|
||||
|
||||
+12
-7
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user