Fix bugs in waiting room.
This commit is contained in:
+3
-1
@@ -1201,6 +1201,7 @@ type Status struct {
|
||||
AuthServer string `json:"authServer,omitempty"`
|
||||
AuthPortal string `json:"authPortal,omitempty"`
|
||||
Locked bool `json:"locked,omitempty"`
|
||||
WaitingRoom bool `json:"waitingRoom,omitempty"`
|
||||
Recording bool `json:"recording,omitempty"`
|
||||
ClientCount *int `json:"clientCount,omitempty"`
|
||||
CanChangePassword bool `json:"canChangePassword,omitempty"`
|
||||
@@ -1255,9 +1256,10 @@ func (g *Hall) Status(authentified bool, base *url.URL) Status {
|
||||
|
||||
if authentified || desc.Public {
|
||||
// these are considered private information
|
||||
locked, _ := g.Locked()
|
||||
locked, hasOperator := g.WaitingStatus()
|
||||
count := g.ClientCount()
|
||||
d.Locked = locked
|
||||
d.WaitingRoom = locked && hasOperator
|
||||
d.ClientCount = &count
|
||||
}
|
||||
if authentified {
|
||||
|
||||
Reference in New Issue
Block a user