From 9cc205f59a555d822d0f3d6db2b1fb4383132e2a Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 26 Mar 2020 16:43:55 +0100 Subject: [PATCH] Can delete groups --- src/helpers/GroupsHelper.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/helpers/GroupsHelper.ts b/src/helpers/GroupsHelper.ts index 915db8b..78ce794 100644 --- a/src/helpers/GroupsHelper.ts +++ b/src/helpers/GroupsHelper.ts @@ -606,7 +606,15 @@ export class GroupsHelper { // Delete all group related notifications await NotificationsHelper.DeleteAllRelatedWithGroup(groupID); - // TODO : continue deletion + // Delete all group members + await DatabaseHelper.DeleteRows(GROUPS_MEMBERS_TABLE, { + groups_id: groupID + }); + + // Delete group information + await DatabaseHelper.DeleteRows(GROUPS_LIST_TABLE, { + id: groupID + }); } /**