Commit 97a5bf60 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Send the locked user-friendly message in the group status.

parent 3b98e123
...@@ -797,8 +797,12 @@ func (c *webClient) PushConn(g *group.Group, id string, up conn.Up, tracks []con ...@@ -797,8 +797,12 @@ func (c *webClient) PushConn(g *group.Group, id string, up conn.Up, tracks []con
func getGroupStatus(g *group.Group) map[string]interface{} { func getGroupStatus(g *group.Group) map[string]interface{} {
status := make(map[string]interface{}) status := make(map[string]interface{})
if locked, _ := g.Locked(); locked { if locked, message := g.Locked(); locked {
if message == "" {
status["locked"] = true status["locked"] = true
} else {
status["locked"] = message
}
} }
if dn := g.DisplayName(); dn != "" { if dn := g.DisplayName(); dn != "" {
status["displayName"] = dn status["displayName"] = dn
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment