mirror of
https://gitlab.com/comunic/comunicapiv2
synced 2024-11-21 21:09:22 +00:00
Can delete groups
This commit is contained in:
parent
7375152fcf
commit
9cc205f59a
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user