mirror of
https://github.com/jech/galene.git
synced 2024-12-22 15:25:48 +01:00
Send the locked user-friendly message in the group status.
This commit is contained in:
parent
3b98e123e0
commit
97a5bf60ad
1 changed files with 6 additions and 2 deletions
|
@ -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{} {
|
||||
status := make(map[string]interface{})
|
||||
if locked, _ := g.Locked(); locked {
|
||||
status["locked"] = true
|
||||
if locked, message := g.Locked(); locked {
|
||||
if message == "" {
|
||||
status["locked"] = true
|
||||
} else {
|
||||
status["locked"] = message
|
||||
}
|
||||
}
|
||||
if dn := g.DisplayName(); dn != "" {
|
||||
status["displayName"] = dn
|
||||
|
|
Loading…
Reference in a new issue