Don't delete empty groups.
It was racy, and it drops the chat history. Let them accumulate for now.
This commit is contained in:
1 parent
4b3ce50dac
commit
e05f2fee81
1 file changed
-4
@@ -256,10 +256,6 @@ func delClient(c *client) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
delete(g.clients, c.id)
|
delete(g.clients, c.id)
|
||||||
|
|
||||||
if len(g.clients) == 0 && !g.description.Public {
|
|
||||||
delGroupUnlocked(g.name)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *group) getClients(except *client) []*client {
|
func (g *group) getClients(except *client) []*client {
|
||||||
|
|||||||
Reference in new issue
Block a user