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
+2 -2
View File
@@ -549,7 +549,7 @@ func AddClient(hall string, c Client, creds ClientCredentials) (*Hall, error) {
if g.locked != nil {
m := *g.locked
if m == "" {
m = "this hall is locked"
m = "Hall is locked."
}
return nil, UserError(m)
}
@@ -632,7 +632,7 @@ func autoLockKick(g *Hall) {
}
}
if g.description.Autolock && g.locked == nil {
m := "this hall is locked"
m := "Hall is locked."
g.locked = &m
for _, c := range clients {
c.Joined(g.Name(), "change")