From a6d201868bc3bbe3bc859efbb9cbbb121f4fc7e9 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Fri, 27 Mar 2020 14:44:27 +0100 Subject: [PATCH] Can delete user account image --- src/helpers/AccountHelper.ts | 4 ++++ src/helpers/AccountImageHelper.ts | 2 ++ 2 files changed, 6 insertions(+) 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) } }