1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +01:00

Don't delete empty groups.

It was racy, and it drops the chat history.  Let them accumulate for now.
This commit is contained in:
Juliusz Chroboczek 2020-05-28 01:10:18 +02:00
parent 4b3ce50dac
commit e05f2fee81

View file

@ -256,10 +256,6 @@ func delClient(c *client) {
return
}
delete(g.clients, c.id)
if len(g.clients) == 0 && !g.description.Public {
delGroupUnlocked(g.name)
}
}
func (g *group) getClients(except *client) []*client {