Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Automatically delete empty groups/communities #6453

Merged
merged 3 commits into from
Dec 16, 2019

Conversation

Matombo
Copy link
Contributor

@Matombo Matombo commented Dec 3, 2019

Signed-off-by: Werner Sembach werner.sembach@fau.de

Another approach to #3023 than #3401.

These changes automatically delete a group/community as soon as the last member leaves the group. The commit also include a sql delta to delete all current empty groups in the database.

Signed-off-by: Werner Sembach <werner.sembach@fau.de>
Signed-off-by: Werner Sembach <werner.sembach@fau.de>
Copy link
Member

@anoadragon453 anoadragon453 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works. LGTM otherwise.

synapse/groups/groups_server.py Outdated Show resolved Hide resolved
@anoadragon453 anoadragon453 self-assigned this Dec 11, 2019
@Matombo
Copy link
Contributor Author

Matombo commented Dec 11, 2019

Nice, fixed the 2 errors in the comments

@anoadragon453
Copy link
Member

Wonderful, thank you!

@anoadragon453 anoadragon453 merged commit 9d173b3 into matrix-org:develop Dec 16, 2019
babolivier pushed a commit that referenced this pull request Sep 1, 2021
* commit '9d173b312':
  Automatically delete empty groups/communities (#6453)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants