1
Fork 0

Fix typo in new client pushing code.

This commit is contained in:
Juliusz Chroboczek 2021-02-15 13:43:10 +01:00
parent 260597d595
commit be2f2d7cb3
1 changed files with 3 additions and 5 deletions

View File

@ -487,11 +487,9 @@ func AddClient(group string, c Client) (*Group, error) {
u := c.Username()
c.PushClient(c.Id(), u, true)
for _, c := range clients {
for _, cc := range clients {
c.PushClient(cc.Id(), cc.Username(), true)
cc.PushClient(c.Id(), u, true)
}
for _, cc := range clients {
c.PushClient(cc.Id(), cc.Username(), true)
cc.PushClient(c.Id(), u, true)
}
return g, nil