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:
parent
4b3ce50dac
commit
e05f2fee81
1 changed files with 0 additions and 4 deletions
4
group.go
4
group.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue