mirror of
https://github.com/jech/galene.git
synced 2024-11-10 02:35:58 +01:00
Send client notification to oneself too.
This was broken when we pushed user notifications into addClient.
This commit is contained in:
parent
b447a2e9a0
commit
49bccda5ee
1 changed files with 2 additions and 1 deletions
3
group.go
3
group.go
|
@ -237,6 +237,7 @@ func addClient(name string, c client, user, pass string) (*group, error) {
|
|||
g.clients[c.getId()] = c
|
||||
|
||||
go func(clients []client) {
|
||||
c.pushClient(c.getId(), c.getUsername(), true)
|
||||
for _, cc := range clients {
|
||||
err := c.pushClient(cc.getId(), cc.getUsername(), true)
|
||||
if err == ErrClientDead {
|
||||
|
@ -264,7 +265,7 @@ func delClient(c client) {
|
|||
for _, cc := range clients {
|
||||
cc.pushClient(c.getId(), c.getUsername(), false)
|
||||
}
|
||||
}(g.getClientsUnlocked(c))
|
||||
}(g.getClientsUnlocked(nil))
|
||||
}
|
||||
|
||||
func (g *group) getClients(except client) []client {
|
||||
|
|
Loading…
Reference in a new issue