diff --git a/src/helpers/AccountHelper.ts b/src/helpers/AccountHelper.ts index 43aad75..029b08d 100644 --- a/src/helpers/AccountHelper.ts +++ b/src/helpers/AccountHelper.ts @@ -19,6 +19,7 @@ import { NotificationsHelper } from "./NotificationsHelper"; import { AccountImageHelper } from "./AccountImageHelper"; import { BackgroundImageHelper } from "./BackgroundImageHelper"; import { EventsHelper } from "./EventsHelper"; +import { CustomEmojisHelper } from "./CustomEmojisHelper"; /** * Account helper @@ -484,7 +485,7 @@ export class AccountHelper { */ public static async Delete(userID: number) { - /*// Delete all groups memberships + // Delete all groups memberships await GroupsHelper.DeleteAllUsersGroups(userID); // Delete all user comments @@ -523,13 +524,16 @@ export class AccountHelper { // Delete user background image await BackgroundImageHelper.Delete(userID); - // TODO : Delete custom user emojies - + // Delete custom user emojies + await CustomEmojisHelper.DeleteAllUser(userID); + // Delete connections to all services await this.DeleteAllUserLoginTokens(userID); - */ + // Delete user from the database - // WILL BE IMPLEMENTED LATER + await DatabaseHelper.DeleteRows(USER_TABLE, { + ID: userID + }) } } \ No newline at end of file