From e05f2fee819aa39030a28070cc13ad56badbae10 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 28 May 2020 01:10:18 +0200 Subject: [PATCH] Don't delete empty groups. It was racy, and it drops the chat history. Let them accumulate for now. --- group.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/group.go b/group.go index 0d5a2a3..6e150e6 100644 --- a/group.go +++ b/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 {