diff --git a/src/helpers/AccountHelper.ts b/src/helpers/AccountHelper.ts index f9e5d36..89560a6 100644 --- a/src/helpers/AccountHelper.ts +++ b/src/helpers/AccountHelper.ts @@ -16,6 +16,7 @@ import { ConversationsHelper } from "./ConversationsHelper"; import { FriendsHelper } from "./FriendsHelper"; import { GroupsHelper } from "./GroupsHelper"; import { NotificationsHelper } from "./NotificationsHelper"; +import { AccountImageHelper } from "./AccountImageHelper"; /** * Account helper @@ -472,6 +473,9 @@ export class AccountHelper { // Delete all user friends, including friendship requests await FriendsHelper.DeleteAllUser(userID); + + // Delete user account image + await AccountImageHelper.Delete(userID); */ // TODO : continue work diff --git a/src/helpers/AccountImageHelper.ts b/src/helpers/AccountImageHelper.ts index b6e04fa..66774aa 100644 --- a/src/helpers/AccountImageHelper.ts +++ b/src/helpers/AccountImageHelper.ts @@ -52,6 +52,8 @@ export class AccountImageHelper { // Delete meta file unlinkSync(this.GetPathMetadataFile(userID)); + + // TODO : delete visiblity file (if any) } }