1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-24 10:28:47 +02:00

Drop Matrix support

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-01-13 16:46:19 +01:00
parent 2f4755ffc7
commit 93a2e2436d
12 changed files with 3 additions and 991 deletions

View File

@ -19,12 +19,11 @@ def create_team_participation(instance, created, raw, **_):
def update_mailing_list(instance: Team, raw, **_):
"""
When a team name or trigram got updated, update mailing lists and Matrix rooms
When a team name or trigram got updated, update mailing lists
"""
if instance.pk and not raw:
old_team = Team.objects.get(pk=instance.pk)
if old_team.trigram != instance.trigram:
# TODO Rename Matrix room
# Delete old mailing list, create a new one
old_team.delete_mailing_list()
instance.create_mailing_list()