1
Fork 0

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
1 changed files with 0 additions and 4 deletions

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 {