Publish websocket endpoint in group status.

This commit is contained in:
Juliusz Chroboczek
2022-09-01 14:55:52 +02:00
parent 4e275a63b4
commit 4bc873a574
4 changed files with 24 additions and 8 deletions
+2 -2
View File
@@ -1148,7 +1148,7 @@ func handleAction(c *webClient, a interface{}) error {
if a.group != "" {
g := group.Get(a.group)
if g != nil {
s := g.Status(true)
s := g.Status(true, "")
status = &s
data = g.Data()
}
@@ -1170,7 +1170,7 @@ func handleAction(c *webClient, a interface{}) error {
return errors.New("Permissions changed in no group")
}
perms := append([]string(nil), c.permissions...)
status := g.Status(true)
status := g.Status(true, "")
c.write(clientMessage{
Type: "joined",
Kind: "change",